mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 12:21:51 +00:00
Build distribution
This commit is contained in:
parent
f53559773f
commit
1f4d400ba1
4 changed files with 21 additions and 11 deletions
9
dist/all.js
vendored
9
dist/all.js
vendored
|
|
@ -1830,7 +1830,8 @@ if (typeof console !== 'undefined') {
|
|||
}
|
||||
|
||||
/**
|
||||
* Stops event observing for a particular event handler
|
||||
* Stops event observing for a particular event handler. Calling this method
|
||||
* without arguments removes all handlers for all events
|
||||
* @deprecated `stopObserving` deprecated since 0.8.34 (use `off` instead)
|
||||
* @memberOf fabric.Observable
|
||||
* @alias off
|
||||
|
|
@ -1842,8 +1843,12 @@ if (typeof console !== 'undefined') {
|
|||
function stopObserving(eventName, handler) {
|
||||
if (!this.__eventListeners) return;
|
||||
|
||||
// remove all key/value pairs (event name -> event handler)
|
||||
if (arguments.length === 0) {
|
||||
this.__eventListeners = { };
|
||||
}
|
||||
// one object with key/value pairs was passed
|
||||
if (arguments.length === 1 && typeof arguments[0] === 'object') {
|
||||
else if (arguments.length === 1 && typeof arguments[0] === 'object') {
|
||||
for (var prop in eventName) {
|
||||
_removeEventListener.call(this, prop, eventName[prop]);
|
||||
}
|
||||
|
|
|
|||
14
dist/all.min.js
vendored
14
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
9
dist/all.require.js
vendored
9
dist/all.require.js
vendored
|
|
@ -1830,7 +1830,8 @@ if (typeof console !== 'undefined') {
|
|||
}
|
||||
|
||||
/**
|
||||
* Stops event observing for a particular event handler
|
||||
* Stops event observing for a particular event handler. Calling this method
|
||||
* without arguments removes all handlers for all events
|
||||
* @deprecated `stopObserving` deprecated since 0.8.34 (use `off` instead)
|
||||
* @memberOf fabric.Observable
|
||||
* @alias off
|
||||
|
|
@ -1842,8 +1843,12 @@ if (typeof console !== 'undefined') {
|
|||
function stopObserving(eventName, handler) {
|
||||
if (!this.__eventListeners) return;
|
||||
|
||||
// remove all key/value pairs (event name -> event handler)
|
||||
if (arguments.length === 0) {
|
||||
this.__eventListeners = { };
|
||||
}
|
||||
// one object with key/value pairs was passed
|
||||
if (arguments.length === 1 && typeof arguments[0] === 'object') {
|
||||
else if (arguments.length === 1 && typeof arguments[0] === 'object') {
|
||||
for (var prop in eventName) {
|
||||
_removeEventListener.call(this, prop, eventName[prop]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue