list: {},
-
-
- highlightElement: function(element) {
- this.wrapper.find('.highlighted-element').removeClass('highlighted-element');
- element.dom().addClass('highlighted-element');
- },
-
- dimElement: function(element) {
- element.dom().removeClass('highlighted-element');
- },
getCurrentNodeElement: function() {
return this.getDocumentElement(this.wrapper.find('.current-node-element')[0]);
var displayCss = toggle ? 'inline-block' : 'none';
var label = this.dom().children('.canvas-widgets').find('.canvas-widget-label');
label.css('display', displayCss);
+ this.toggleHighlight(toggle);
+ },
+
+ toggleHighlight: function(toogle) {
this.dom().toggleClass('highlighted-element');
}
});
this.after(newElement);
newElement.after(rhsTextElement);
return newElement;
+ },
+
+ toggleHighlight: function() {
+ // do nothing for now
}
});
sandbox.publish('currentNodeElementChanged', currentNodeElement);
},
highlightElement: function(element) {
- canvas.highlightElement(element);
+ element.toggleHighlight(true);
},
dimElement: function(element) {
- canvas.dimElement(element);
+ element.toggleHighlight(false);
},
jumpToElement: function(element) {
canvas.setCurrentElement(element);