aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 16:24:14 -0700
committerValerio Virgillito2012-06-01 16:24:14 -0700
commit266460e52831c5b3a3473be420756fd88bb8aced (patch)
tree7e72f8c2f924096592e10032a8bcac4d24fa8dde /js/panels/css-panel
parentfa7b5f8acc933fd12d31c24b350156b42c26b96a (diff)
downloadninja-266460e52831c5b3a3473be420756fd88bb8aced.tar.gz
fix for the css panel
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r--js/panels/css-panel/styles-view-delegate.js2
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) {