Skip to content

Commit

Permalink
Fix for compatibility with previous versions of Knockout.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Oct 2, 2013
1 parent 762c1bc commit 17b9a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knockout-deferred-updates.js
Expand Up @@ -188,7 +188,7 @@ if (!ko.utils.objectMap) {
// Helper functions for sniffing the minified Knockout code
function findNameMethodSignatureContaining(obj, match) {
for (var a in obj)
if (obj.hasOwnProperty(a) && obj[a].toString().indexOf(match) >= 0)
if (obj.hasOwnProperty(a) && obj[a] && obj[a].toString().indexOf(match) >= 0)
return a;
}
function findPropertyName(obj, equals) {
Expand Down

0 comments on commit 17b9a09

Please sign in to comment.