mirror of
https://github.com/konvajs/konva.git
synced 2025-07-15 14:41:50 +08:00
build
This commit is contained in:
parent
16511a9aef
commit
7412f76a39
10
kinetic.js
10
kinetic.js
@ -4,7 +4,7 @@
|
||||
* http://www.kineticjs.com/
|
||||
* Copyright 2013, Eric Rowell
|
||||
* Licensed under the MIT or GPL Version 2 licenses.
|
||||
* Date: 2014-05-12
|
||||
* Date: 2014-05-15
|
||||
*
|
||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||
*
|
||||
@ -2659,10 +2659,16 @@ var Kinetic = {};
|
||||
* node.off('click.foo');
|
||||
*/
|
||||
off: function(evtStr) {
|
||||
var events = evtStr.split(SPACE),
|
||||
var events = (evtStr || '').split(SPACE),
|
||||
len = events.length,
|
||||
n, t, event, parts, baseEvent, name;
|
||||
|
||||
if (!evtStr) {
|
||||
// remove all events
|
||||
for(t in this.eventListeners) {
|
||||
this._off(t);
|
||||
}
|
||||
}
|
||||
for(n = 0; n < len; n++) {
|
||||
event = events[n];
|
||||
parts = event.split(DOT);
|
||||
|
4
kinetic.min.js
vendored
4
kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user