mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Have paper.install() use Base.each().
This commit is contained in:
parent
d64fe1f179
commit
9ef31616d5
1 changed files with 5 additions and 3 deletions
|
@ -58,9 +58,11 @@ var PaperScope = Base.extend({
|
|||
* paper.install(window);
|
||||
*/
|
||||
install: function(scope) {
|
||||
for (var i in this) {
|
||||
scope[i] = this[i];
|
||||
}
|
||||
// Use scope as side-car (= 'this' inside iterator), and have it
|
||||
// returned at the end.
|
||||
return Base.each(this, function(value, key) {
|
||||
this[key] = value;
|
||||
}, scope);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue