mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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) {
|
||||
for (var i in paper) {
|
||||
scope[i] = paper[i];
|
||||
if (!scope[i])
|
||||
scope[i] = paper[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue