//在windows.js中
//自定义事件解绑(和绑定也没什么区别,只是不管绑定了几个事件,解绑都会一起解除)
off: function(type) {
if (typeof this.handlers[type] != 'undefined') {
this.handlers[type] = [];
}
},
//在main.js中
win.off('close');
//自定义事件解绑(和绑定也没什么区别,只是不管绑定了几个事件,解绑都会一起解除)
off: function(type) {
if (typeof this.handlers[type] != 'undefined') {
this.handlers[type] = [];
}
},
//在main.js中
win.off('close');
2017-02-04
//这样就不会拖出边界了
if (CFG.isDraggable) {
boundingBox.draggable({
containment: "window"
});
}
if (CFG.isDraggable) {
boundingBox.draggable({
containment: "window"
});
}