summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 21:56:09 -0400
committerNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 21:56:09 -0400
commit836b5d3fd04c4438241c5f53078da2b36f54a9b1 (patch)
treed61929abe90f352474e933623e4af6373cd4ee70
parentaaa3c407bc54e61ba2944f97956a89bf76ad22d1 (diff)
downloadsnap-836b5d3fd04c4438241c5f53078da2b36f54a9b1.tar.gz
snap-836b5d3fd04c4438241c5f53078da2b36f54a9b1.zip
Add missing init() super calls in paint.js
-rw-r--r--paint.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/paint.js b/paint.js
index b4c55b1..6e4ae8b 100644
--- a/paint.js
+++ b/paint.js
@@ -92,6 +92,7 @@ function PaintEditorMorph() {
}
PaintEditorMorph.prototype.init = function () {
+ PaintEditorMorph.uber.init.call(this);
// additional properties:
this.paper = null; // paint canvas
this.oncancel = null;
@@ -485,6 +486,7 @@ function PaintColorPickerMorph(extent, action) {
}
PaintColorPickerMorph.prototype.init = function (extent, action) {
+ PaintColorPickerMorph.uber.init.call(this);
this.setExtent(extent || new Point(200, 100));
this.action = action || nop;
this.drawNew();
@@ -561,6 +563,7 @@ function PaintCanvasMorph(shift) {
}
PaintCanvasMorph.prototype.init = function (shift) {
+ PaintCanvasMorph.uber.init.call(this);
this.rotationCenter = new Point(240, 180);
this.dragRect = null;
this.previousDragPoint = null;
@@ -961,6 +964,7 @@ PaintCanvasMorph.prototype.buildContents = function () {
};
PaintCanvasMorph.prototype.drawNew = function () {
+ if (!this.background) return;
var can = newCanvas(this.extent());
this.merge(this.background, can);
this.merge(this.paper, can);