From: Aleksander Ɓukasz Date: Wed, 7 Aug 2013 08:45:36 +0000 (+0200) Subject: Fixing element highlighting synchronization issue X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/179b145075f8f90038cba27e30a4fcadd3a764ff Fixing element highlighting synchronization issue --- diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index cfdac5d..689df0e 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -367,8 +367,8 @@ $.extend(DocumentNodeElement.prototype, { this.toggleHighlight(toggle); }, - toggleHighlight: function(toogle) { - this._container().toggleClass('highlighted-element'); + toggleHighlight: function(toggle) { + this._container().toggleClass('highlighted-element', toggle); }, toggle: function(toggle) {