summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/objects.js b/objects.js
index 34e7069..d51aeea 100644
--- a/objects.js
+++ b/objects.js
@@ -5854,14 +5854,10 @@ WatcherMorph.prototype.drawNew = function () {
gradient;
this.image = newCanvas(this.extent());
context = this.image.getContext('2d');
- if ((this.edge === 0) && (this.border === 0)) {
+ if (MorphicPreferences.isFlat || (this.edge === 0 && this.border === 0)) {
BoxMorph.uber.drawNew.call(this);
return;
}
- if (MorphicPreferences.isFlat) {
- WatcherMorph.uber.drawNew.call(this);
- return;
- }
gradient = context.createLinearGradient(0, 0, 0, this.height());
gradient.addColorStop(0, this.color.lighter().toString());
gradient.addColorStop(1, this.color.darker().toString());