mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Make sure paper.* objects are only installed in the passed object if there is not already something under the same name.
This commit is contained in:
parent
e9881c02fc
commit
59dc0ae6d0
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ var paper = {
|
||||||
|
|
||||||
install: function(scope) {
|
install: function(scope) {
|
||||||
for (var i in paper) {
|
for (var i in paper) {
|
||||||
scope[i] = paper[i];
|
if (!scope[i])
|
||||||
|
scope[i] = paper[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue