This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
jan
/
mustache.js
огледало од
https://github.com/janl/mustache.js
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Издања
46
Вики
Activity
Преглед изворни кода
Remove `typeof obj === 'object'` constraint in prop lookup
Allows rendering properties of primitive types that are not objects, such as a string.
pull/618/head
David da Silva
raymond.lam
пре 9 година
родитељ
a51e1c22a1
комит
6382ec91e8
1 измењених фајлова
са
1 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
mustache.js
+ 1
- 1
mustache.js
Прегледај датотеку
@@ -42,7 +42,7 @@
* including its prototype, has a given property
*/
function hasProperty (obj, propName) {
return obj != null &&
typeof obj === 'object' &&
(propName in obj);
return obj != null && (propName in obj);
}
// Workaround for https://issues.apache.org/jira/browse/COUCHDB-577
Write
Preview
Loading…
Откажи
Сачувај