Created
September 9, 2013 07:22
-
-
Save remydagostino/6492420 to your computer and use it in GitHub Desktop.
Find duplicate ko.applyBindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var boundElements = []; | |
ko.applyBindings = function(vm, el) { | |
if (boundElements.indexOf(el) > -1) { | |
console.log("dupe", el); | |
} | |
boundElements.push(el); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment