diff options
Diffstat (limited to 'js/panels/presets/style-presets.reel/style-presets.js')
-rw-r--r-- | js/panels/presets/style-presets.reel/style-presets.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/panels/presets/style-presets.reel/style-presets.js b/js/panels/presets/style-presets.reel/style-presets.js index 3a71c344..f25c8067 100644 --- a/js/panels/presets/style-presets.reel/style-presets.js +++ b/js/panels/presets/style-presets.reel/style-presets.js | |||
@@ -79,11 +79,15 @@ exports.StylesLibrary = Montage.create(Component, { | |||
79 | // }); | 79 | // }); |
80 | } | 80 | } |
81 | }, | 81 | }, |
82 | applyPresetSelection : { | 82 | handleNodeActivation: { |
83 | value: function(presetData) { | 83 | value: function(presetData) { |
84 | var selection = this.application.ninja.selectedElements, | 84 | var selection = this.application.ninja.selectedElements, |
85 | self = this; | 85 | self = this; |
86 | 86 | ||
87 | if(!selection || !selection.length || selection.length === 0) { | ||
88 | return false; | ||
89 | } | ||
90 | |||
87 | function setStopRuleSelector(selector) { | 91 | function setStopRuleSelector(selector) { |
88 | self.application.ninja | 92 | self.application.ninja |
89 | .currentDocument.documentRoot | 93 | .currentDocument.documentRoot |
@@ -106,6 +110,11 @@ exports.StylesLibrary = Montage.create(Component, { | |||
106 | 110 | ||
107 | } | 111 | } |
108 | }, | 112 | }, |
113 | handleDragEnd : { | ||
114 | value: function(sourceObject) { | ||
115 | console.log(sourceObject); | ||
116 | } | ||
117 | }, | ||
109 | shouldChangeSelection : { | 118 | shouldChangeSelection : { |
110 | value : function(controller, newSelection, oldSelection) { | 119 | value : function(controller, newSelection, oldSelection) { |
111 | // | 120 | // |