mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-26 21:59:46 -04:00
Pass ctor.dont to all constructor calls that are followed with explicit initialize() calls afterwards, to make sure it is only called once.
This commit is contained in:
parent
a41a762237
commit
ed752ed744
5 changed files with 5 additions and 5 deletions
src/basic
|
@ -94,7 +94,7 @@ var Size = Base.extend({
|
|||
if (length == 1 && args[index] instanceof Size) {
|
||||
return args[index];
|
||||
} else if (length != 0) {
|
||||
var size = new Size();
|
||||
var size = new Size(Size.dont);
|
||||
size.initialize.apply(size, index > 0
|
||||
? Array.prototype.slice.call(args, index) : args);
|
||||
return size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue