...
|
...
|
@@ -50,15 +50,17 @@ edit.prototype = { |
|
|
},
|
|
|
off: function(name, callback) {
|
|
|
var __self = this;
|
|
|
var _e = __self.registerEvent[name];
|
|
|
var _e = __self.registerEvent[name] || [];
|
|
|
var e = [];
|
|
|
me.each(_e, function(name, _callback) {
|
|
|
|
|
|
_e.forEach(function(_callback, index) {
|
|
|
if (_callback === callback) {
|
|
|
e.push(name);
|
|
|
e.push(index);
|
|
|
}
|
|
|
});
|
|
|
me.each(e.reverse(), function(name, _callback) {
|
|
|
_e.splice(_callback, 1);
|
|
|
|
|
|
e.reverse().forEach(function(index) {
|
|
|
_e.splice(index, 1);
|
|
|
});
|
|
|
},
|
|
|
init: function() {
|
...
|
...
|
|