Make sure Base object is scoped locally.

This commit is contained in:
Jürg Lehni 2011-03-04 21:38:42 +00:00
parent 630c3431d8
commit 9bd8950e33

4
lib/bootstrap.js vendored
View file

@ -16,7 +16,7 @@
* where deemeded necessary. * where deemeded necessary.
* See http://www.bootstrap-js.net/wiki/MootoolsDifferences * See http://www.bootstrap-js.net/wiki/MootoolsDifferences
*/ */
new function() { var Base = new function() {
var fix = !this.__proto__ && [Function, Number, Boolean, String, Array, Date, RegExp]; var fix = !this.__proto__ && [Function, Number, Boolean, String, Array, Date, RegExp];
if (fix) if (fix)
for (var i in fix) for (var i in fix)
@ -185,7 +185,7 @@ new function() {
}, new obj.constructor()); }, new obj.constructor());
} }
Base = Object.extend({ return Object.extend({
has: function(name) { has: function(name) {
return has(this, name); return has(this, name);
}, },