EventManager.js
364 字节
/**
* EventManager
* provides internal event support
*/
var EventManager = function(core){
this.core = core;
};
EventManager.prototype = {
on: function(n,cb){ $(this).on(n,cb); },
off: function(n){ $(this).off(n); },
trigger: function(n){ $(this).trigger(n); }
};
Jcrop.registerComponent('EventManager',EventManager);