diff options
| author | Nathan Dinsmore <nathan@users.noreply.github.com> | 2015-06-17 23:05:34 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <nathan@users.noreply.github.com> | 2015-06-17 23:05:34 -0400 |
| commit | 0245a81fc04cf787bae2f3467f850a07d9791ca7 (patch) | |
| tree | 04c78a36d7b40656054fa51ec9487387273b9531 /morphic.js | |
| parent | 95a815b6d63b57f46a72be25b9723366f4af76bd (diff) | |
| download | snap-0245a81fc04cf787bae2f3467f850a07d9791ca7.tar.gz snap-0245a81fc04cf787bae2f3467f850a07d9791ca7.zip | |
Optimize loading projects a bit more
Diffstat (limited to 'morphic.js')
| -rw-r--r-- | morphic.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2199,7 +2199,7 @@ function Morph() { // Morph initialization: -Morph.prototype.init = function () { +Morph.prototype.init = function (noDraw) { Morph.uber.init.call(this); this.isMorph = true; this.bounds = new Rectangle(0, 0, 50, 40); @@ -2212,7 +2212,7 @@ Morph.prototype.init = function () { this.isTemplate = false; this.acceptsDrops = false; this.noticesTransparentClick = false; - this.drawNew(); + if (!noDraw) this.drawNew(); this.fps = 0; this.customContextMenu = null; this.lastTime = Date.now(); @@ -6999,7 +6999,7 @@ StringMorph.prototype.init = function ( this.markedBackgoundColor = new Color(60, 60, 120); // initialize inherited properties: - StringMorph.uber.init.call(this); + StringMorph.uber.init.call(this, true); // override inherited properites: this.color = color || new Color(0, 0, 0); |
