From 4ea4775d400572dcda3a9bec3cc0f3c165034392 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 16 Sep 2013 19:25:07 -0700 Subject: [PATCH] faster node collection iteration. --- src/declaration/attributes.js | 5 +++-- src/declaration/events.js | 17 ++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/declaration/attributes.js b/src/declaration/attributes.js index 9a52f6ac8e..8fceaec705 100644 --- a/src/declaration/attributes.js +++ b/src/declaration/attributes.js @@ -42,11 +42,12 @@ // inherit instance attributes var clonable = this.prototype._instanceAttributes; // merge attributes from element - this.attributes.forEach(function(a) { + var a$ = this.attributes; + for (var i=0, l=a$.length, a; (i