-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
destroy: function() {
if (this._shim) {
this._shim.destroy();
}
// clean event binding of autohide
$('body').off('mousedown.calendar');
BaseCalendar.superclass.destroy.call(this);
}
以下的这些事件好像没有看到有清理?
var event = this.get('triggerType') + '.calendar';
$trigger.on(event, function() {
self.show();
self._shim.sync();
});
$trigger.on('blur.calendar', function() {
self.hide();
self._shim.sync();
});
// enable auto hide feature
if ($trigger[0].tagName.toLowerCase() !== 'input') {
self.autohide();
}
导致hide、show动作在destroy后还生效
?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels