diff --git a/src/micro/behaviors.html b/src/micro/behaviors.html index f0e55800ec..ca5ca85354 100644 --- a/src/micro/behaviors.html +++ b/src/micro/behaviors.html @@ -133,9 +133,9 @@ }, _doBehavior: function(name, args) { - this.behaviors.forEach(function(b) { - this._invokeBehavior(b, name, args); - }, this); + for (var i=0; i < this.behaviors.length; i++) { + this._invokeBehavior(this.behaviors[i], name, args); + } this._invokeBehavior(this, name, args); }, @@ -147,9 +147,9 @@ }, _marshalBehaviors: function() { - this.behaviors.forEach(function(b) { - this._marshalBehavior(b); - }, this); + for (var i=0; i < this.behaviors.length; i++) { + this._marshalBehavior(this.behaviors[i]); + } this._marshalBehavior(this); } diff --git a/src/standard/annotations.html b/src/standard/annotations.html index 1deda3e0ca..b2f768546e 100644 --- a/src/standard/annotations.html +++ b/src/standard/annotations.html @@ -279,32 +279,34 @@ // construct `$` map (from id annotations) _marshalIdNodes: function() { this.$ = {}; - this._notes.forEach(function(a) { + for (var i=0, l=this._notes.length, a; (i