diff options
author | Valerio Virgillito | 2012-03-01 17:00:24 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-03-01 17:00:24 -0800 |
commit | dd981ba7fcd85ebf2dc2d6bf539fdb37eeacd556 (patch) | |
tree | f574978953d7813886adee2b6445c549e1093908 /js/panels/Color/colorpanel.js | |
parent | 5243824bdc19fc05eccfb6b594b42788f24b3c9d (diff) | |
parent | 42d78d11764dca5df6c7d01f3221f398bee17152 (diff) | |
download | ninja-dd981ba7fcd85ebf2dc2d6bf539fdb37eeacd556.tar.gz |
Merge branch 'refs/heads/master' into stage-fixes
Diffstat (limited to 'js/panels/Color/colorpanel.js')
-rwxr-xr-x | js/panels/Color/colorpanel.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/js/panels/Color/colorpanel.js b/js/panels/Color/colorpanel.js index 4858be68..3a603e98 100755 --- a/js/panels/Color/colorpanel.js +++ b/js/panels/Color/colorpanel.js | |||
@@ -38,7 +38,7 @@ exports.ColorPanel = Montage.create(PanelBase, { | |||
38 | //////////////////////////////////////////////////////////// | 38 | //////////////////////////////////////////////////////////// |
39 | //////////////////////////////////////////////////////////// | 39 | //////////////////////////////////////////////////////////// |
40 | //TODO: Remove and add via toolbar draw loop | 40 | //TODO: Remove and add via toolbar draw loop |
41 | this.application.ninja.colorController.createToolbar(); | 41 | |
42 | //////////////////////////////////////////////////////////// | 42 | //////////////////////////////////////////////////////////// |
43 | //////////////////////////////////////////////////////////// | 43 | //////////////////////////////////////////////////////////// |
44 | 44 | ||
@@ -47,14 +47,7 @@ exports.ColorPanel = Montage.create(PanelBase, { | |||
47 | }, | 47 | }, |
48 | //////////////////////////////////////////////////////////////////// | 48 | //////////////////////////////////////////////////////////////////// |
49 | //Applying default colors only on first draw | 49 | //Applying default colors only on first draw |
50 | handleFirstDraw: { | 50 | |
51 | enumerable: true, | ||
52 | value: function (e) { | ||
53 | // | ||
54 | this.content.applyDefaultColors(); | ||
55 | this.content.removeEventListener('firstDraw', this, false); | ||
56 | } | ||
57 | } | ||
58 | //////////////////////////////////////////////////////////////////// | 51 | //////////////////////////////////////////////////////////////////// |
59 | //////////////////////////////////////////////////////////////////// | 52 | //////////////////////////////////////////////////////////////////// |
60 | }); \ No newline at end of file | 53 | }); \ No newline at end of file |