summaryrefslogtreecommitdiff
path: root/lists.js
diff options
context:
space:
mode:
Diffstat (limited to 'lists.js')
-rw-r--r--lists.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lists.js b/lists.js
index bd856fe..be7f933 100644
--- a/lists.js
+++ b/lists.js
@@ -363,7 +363,7 @@ List.prototype.equalTo = function (other) {
// ListWatcherMorph inherits from BoxMorph:
-ListWatcherMorph.prototype = new BoxMorph();
+ListWatcherMorph.prototype = Object.create(BoxMorph.prototype);
ListWatcherMorph.prototype.constructor = ListWatcherMorph;
ListWatcherMorph.uber = BoxMorph.prototype;