From 9bd8950e3394cdaa49a8564bfa052c1496a0c0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 4 Mar 2011 21:38:42 +0000 Subject: [PATCH] Make sure Base object is scoped locally. --- lib/bootstrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bootstrap.js b/lib/bootstrap.js index cf372d76..9f547a97 100644 --- a/lib/bootstrap.js +++ b/lib/bootstrap.js @@ -16,7 +16,7 @@ * where deemeded necessary. * 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]; if (fix) for (var i in fix) @@ -185,7 +185,7 @@ new function() { }, new obj.constructor()); } - Base = Object.extend({ + return Object.extend({ has: function(name) { return has(this, name); },