We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 004000b + e091c27 commit d11f863Copy full SHA for d11f863
bindonce.js
@@ -101,15 +101,13 @@
101
}
102
},
103
104
- runBinders: function ()
+ runBinders : function()
105
{
106
- var i, max;
107
- for (i = 0, max = this.binders.length; i < max; i++)
108
- {
109
- var binder = this.binders[i];
110
- if (this.group && this.group !== binder.group) continue;
+ while(this.binders.length > 0) {
+ var binder = this.binders.shift();
+ if (this.group && this.group != binder.group ) continue;
111
var value = binder.scope.$eval((binder.interpolate) ? $interpolate(binder.value) : binder.value);
112
- switch (binder.attr)
+ switch(binder.attr)
113
114
case 'if':
115
if (toBoolean(value))
@@ -269,4 +267,4 @@
269
267
return bindonceDirective;
270
268
});
271
272
-})();
+})();
0 commit comments