Do not mess with native prototypes in Bootstrap.js

This commit is contained in:
Jürg Lehni 2011-12-25 16:27:46 +01:00
parent 1e690a68e0
commit 7c8409d7c2

2
lib/bootstrap.js vendored
View file

@ -33,7 +33,7 @@ var Base = new function() { // Bootstrap scope
return toString.call(obj) === '[object Array]';
},
slice = proto.slice,
forEach = proto.forEach = proto.forEach || function(iter, bind) {
forEach = proto.forEach || function(iter, bind) {
for (var i = 0, l = this.length; i < l; i++)
iter.call(bind, this[i], i, this);
},