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
var DataBindConvention = { | |
selector: "*[data-bind]", | |
handler: { | |
bind: function(selector, view, model){ | |
view.$(selector).each(function(index){ | |
var element = view.$(this); | |
var databind = element.attr("data-bind").split(" "); | |
var elementAttr = databind[0]; | |
var modelAttr = databind[1]; |