diff options
author | Valerio Virgillito | 2012-06-01 16:24:14 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-01 16:24:14 -0700 |
commit | 266460e52831c5b3a3473be420756fd88bb8aced (patch) | |
tree | 7e72f8c2f924096592e10032a8bcac4d24fa8dde /js | |
parent | fa7b5f8acc933fd12d31c24b350156b42c26b96a (diff) | |
download | ninja-266460e52831c5b3a3473be420756fd88bb8aced.tar.gz |
fix for the css panel
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/css-panel/styles-view-delegate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index 078bd521..87686826 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js | |||
@@ -30,7 +30,7 @@ exports.StylesViewDelegate = Montage.create(Component, { | |||
30 | value: function(selector, direction) { | 30 | value: function(selector, direction) { |
31 | if(!selector) { return false; } | 31 | if(!selector) { return false; } |
32 | 32 | ||
33 | var elements = this.stylesController._activeDocument.model.views.design.document.querySelectorAll(selector), | 33 | var elements = this.stylesController.currentDocument.model.views.design.document.querySelectorAll(selector), |
34 | method = (direction === "out") ? "remove" : "add"; | 34 | method = (direction === "out") ? "remove" : "add"; |
35 | 35 | ||
36 | Array.prototype.slice.call(elements).forEach(function(el) { | 36 | Array.prototype.slice.call(elements).forEach(function(el) { |