summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
authorNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 23:05:34 -0400
committerNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 23:05:34 -0400
commit0245a81fc04cf787bae2f3467f850a07d9791ca7 (patch)
tree04c78a36d7b40656054fa51ec9487387273b9531 /morphic.js
parent95a815b6d63b57f46a72be25b9723366f4af76bd (diff)
downloadsnap-0245a81fc04cf787bae2f3467f850a07d9791ca7.tar.gz
snap-0245a81fc04cf787bae2f3467f850a07d9791ca7.zip
Optimize loading projects a bit more
Diffstat (limited to 'morphic.js')
-rw-r--r--morphic.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphic.js b/morphic.js
index 0b20eb5..1552d78 100644
--- a/morphic.js
+++ b/morphic.js
@@ -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);