fix: canvas again gets opportunity to react to footnote being closed
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 3 Apr 2014 09:52:08 +0000 (11:52 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 6 May 2014 09:37:47 +0000 (11:37 +0200)
src/editor/modules/documentCanvas/canvas/documentElement.js
src/editor/plugins/core/canvasElements.js

index 7b7f7f9..b2e25ed 100644 (file)
@@ -52,7 +52,7 @@ $.extend(DocumentElement.prototype, {
     },
 
     trigger: function() {
-        //this.canvas.bus.trigger()
+        this.canvas.eventBus.trigger.apply(this.canvas.eventBus, Array.prototype.slice.call(arguments, 0));
     }
 
 
index b0f51b6..e74adee 100644 (file)
@@ -100,7 +100,7 @@ var footnote = {
         }
         this._container().toggle(toggle);
         if(!options.silent) {
-            this.trigger('elementToggled', toggle, this.documentElement);
+            this.trigger('elementToggled', toggle, this);
         }
     }
 };