diff options
| author | Jens Mönig <jens@moenig.org> | 2015-03-23 13:40:54 +0100 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-03-23 13:40:54 +0100 |
| commit | 93864cd4739963a462d5ea62f226531e2ecf27e1 (patch) | |
| tree | ef76157fdb81aa885cc692a932c2ed03c9fed209 /objects.js | |
| parent | af9b3dec293c45ac4b109f4ef3c21ba2f5bc55c3 (diff) | |
| download | snap-93864cd4739963a462d5ea62f226531e2ecf27e1.tar.gz snap-93864cd4739963a462d5ea62f226531e2ecf27e1.zip | |
OOP: Fix variable watcher slider functionality
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -7161,7 +7161,11 @@ WatcherMorph.prototype.fixLayout = function () { this.sliderMorph.button.pressColor.b += 100; this.sliderMorph.setHeight(fontSize); this.sliderMorph.action = function (num) { - myself.target.vars[myself.getter].value = Math.round(num); + myself.target.setVar( + myself.getter, + Math.round(num), + myself.target.owner + ); }; this.add(this.sliderMorph); } |
