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:
Jürg Lehni 2011-03-03 16:38:04 +00:00
parent e9881c02fc
commit 59dc0ae6d0

View file

@ -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];
}
}
};