mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Make sure Base object is scoped locally.
This commit is contained in:
parent
630c3431d8
commit
9bd8950e33
1 changed files with 2 additions and 2 deletions
4
lib/bootstrap.js
vendored
4
lib/bootstrap.js
vendored
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue