如何在set()上解除绑定mousemove
Raphael.js: How to unbind mousemove on set()?
我有拉斐尔.js代码:
var set = paper.set();
// ... here push some elements to set: path, circles, etc.
set.mousedown(function() { ... });
set.mousemove(function() { ... });
set.mouseup(function() { ... });
一切正常…但如何做unbind
, .mousemove
事件上的"集"和bind
吗?
在事件名称前添加un
http://raphaeljs.com/reference.html#Element.unmousemove
// Pass the handler to install it
set.mousemove(handler);
// Pass the same handler to remove it
set.unmousemove(handler);
拉斐尔JS:如何删除事件?
不能像以前那样传入匿名函数,因为在删除处理程序时必须传递对该函数的引用
相关文章:
- 在VanillaJS中模拟模型双向数据绑定
- 无法通过数组映射绑定
- 主干-不管怎样,检查事件以前是否绑定过
- 用于搜索的聚合物嵌套绑定
- Angular:更新一次性绑定的数据
- 如何使用ngrepeat和双向绑定获得指令的隔离范围
- react.js中的密钥绑定
- 使用regex的jquery keydown绑定不会验证撇号和句点
- 将事件处理程序绑定到任何可能的事件
- AngularJS指令只识别双向绑定类型
- Telerik rad组合框多列数据绑定
- 对API数据使用声明性绑定
- 如何销毁/删除/取消绑定SnapSVG.js
- 在D3.js中,有没有任何方法可以将x和y方向上的滚动事件绑定到平移svg
- 数据绑定:'系统Char'不包含名为'xxxxx'
- react组件中的绑定方法
- 如何将ngrepeat下的ngmodel绑定到$scope
- 如何在拖动绑定到“mousedowd,mousemove,mouseup”的锚点时防止重定向
- jQuery UI draggable:绑定到mousemove事件中的对象
- 如何在set()上解除绑定mousemove