src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Observable.min.js
changeset 81 472bd9195a15
equal deleted inserted replaced
80:181b3a0ee15a 81:472bd9195a15
       
     1 define("tinymce/util/Observable",["tinymce/util/EventDispatcher"],function(b){function a(c){if(!c._eventDispatcher){c._eventDispatcher=new b({scope:c,toggleEvent:function(d,e){if(b.isNative(d)&&c.toggleNativeEvent){c.toggleNativeEvent(d,e)}}})}return c._eventDispatcher}return{fire:function(f,e,c){var d=this;if(d.removed&&f!=="remove"){return e}e=a(d).fire(f,e,c);if(c!==false&&d.parent){var g=d.parent();while(g&&!e.isPropagationStopped()){g.fire(f,e,false);g=g.parent()}}return e},on:function(d,e,c){return a(this).on(d,e,c)},off:function(c,d){return a(this).off(c,d)},once:function(c,d){return a(this).once(c,d)},hasEventListeners:function(c){return a(this).has(c)}}});