1. Scott Koon
  2. bootstrap

Commits

Scott Koon  committed 200868b

changed to IE8 comaptible method of converting nodelist to array

  • Participants
  • Parent commits 8b33e6d
  • Branches default

Comments (0)

Files changed (1)

File bootstrap.js

View file
                 propToCheck = "href";
             }
 
-            var nodeArray = Array.prototype.slice.call(nodeList);
+            var nodeArray = (function() {
+                    var a = [];
+                    for(var c = nodeList.length;c-- > 0;) {
+                        if(c in nodeList) {
+                            a.push(nodeList.c)
+                        }
+                    }
+                    return a
+                    }); 
             for (var c = 0, len = nodeArray.length; c < len; c++) {
                 if ((propToCheck in nodeArray[c]) && nodeArray[c][propToCheck] == src)
                     return false;