Ticket #2944: 2944.patch
File 2944.patch, 1.5 KB (added by , 14 years ago) |
---|
-
_source/core/event.js
121 121 if ( isNaN( priority ) ) 122 122 priority = 10; 123 123 124 var me = this; 125 124 126 // Create the function to be fired for this listener. 125 127 var listenerFirer = function( editor, publisherData, stopFn, cancelFn ) 126 128 { … … 132 134 data : publisherData, 133 135 listenerData : listenerData, 134 136 stop : stopFn, 135 cancel : cancelFn 137 cancel : cancelFn, 138 removeListener : function() 139 { 140 me.removeListener( eventName, listenerFunction ); 141 } 136 142 }; 137 143 138 144 listenerFunction.call( scopeObj, ev ); -
_source/plugins/editingblock/plugin.js
90 90 if ( editor.mode ) 91 91 getMode( editor ).loadSnapshotData( event.data ); 92 92 }); 93 94 // For the first "mode" call, we'll also fire the "instanceReady" 95 // event. 96 editor.on( 'mode', function( event ) 97 { 98 // Do that once only. 99 event.removeListener(); 100 101 // Fire instanceReady for both the editor and CKEDITOR. 102 editor.fireOnce( 'instanceReady' ); 103 CKEDITOR.fire( 'instanceReady', null, editor ); 104 }); 93 105 } 94 106 }); 95 107