|
|
|
@ -23382,7 +23382,7 @@ module.exports = function () { |
|
|
|
plugins: plugins, |
|
|
|
|
|
|
|
// Will be replaced on build
|
|
|
|
version: '0.13.6', |
|
|
|
version: '0.13.7', |
|
|
|
|
|
|
|
/** |
|
|
|
* Initializes an editor based on passed options |
|
|
|
@ -47096,6 +47096,8 @@ module.exports = Backbone.View.extend({ |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
var _underscore = __webpack_require__(1); |
|
|
|
|
|
|
|
module.exports = function (_ref) { |
|
|
|
var $ = _ref.$, |
|
|
|
Backbone = _ref.Backbone; |
|
|
|
@ -47171,38 +47173,6 @@ module.exports = function (_ref) { |
|
|
|
var namespaceArray = name.split('.'); |
|
|
|
return name.indexOf('.') !== 0 ? [namespaceArray[0], namespaceArray.slice(1)] : [null, namespaceArray]; |
|
|
|
}; |
|
|
|
/* |
|
|
|
const CashEvent = function(node, eventName, namespaces, delegate, originalCallback, runOnce) { |
|
|
|
const eventCache = getData(node,'_cashEvents') || setData(node, '_cashEvents', {}); |
|
|
|
const remove = function(c, namespace){ |
|
|
|
if ( c && originalCallback !== c ) { return; } |
|
|
|
if ( namespace && this.namespaces.indexOf(namespace) < 0 ) { return; } |
|
|
|
node.removeEventListener(eventName, callback); |
|
|
|
}; |
|
|
|
const callback = function(e) { |
|
|
|
var t = this; |
|
|
|
if (delegate) { |
|
|
|
t = e.target; |
|
|
|
while (t && !matches(t, delegate)) { |
|
|
|
if (t === this) { |
|
|
|
return (t = false); |
|
|
|
} |
|
|
|
t = t.parentNode; |
|
|
|
} |
|
|
|
} |
|
|
|
if (t) { |
|
|
|
originalCallback.call(t, e, e.data); |
|
|
|
if ( runOnce ) { remove(); } |
|
|
|
} |
|
|
|
}; |
|
|
|
this.remove = remove; |
|
|
|
this.namespaces = namespaces; |
|
|
|
node.addEventListener(eventName, callback); |
|
|
|
eventCache[eventName] = eventCache[eventName] || []; |
|
|
|
eventCache[eventName].push(this); |
|
|
|
return this; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
var on = $.prototype.on; |
|
|
|
var off = $.prototype.off; |
|
|
|
@ -47343,7 +47313,15 @@ module.exports = function (_ref) { |
|
|
|
}; |
|
|
|
|
|
|
|
fn.unbind = function (ev, h) { |
|
|
|
return this.off(ev, h); |
|
|
|
if ((0, _underscore.isObject)(ev)) { |
|
|
|
for (var name in ev) { |
|
|
|
ev.hasOwnProperty(name) && this.off(name, ev[name]); |
|
|
|
} |
|
|
|
|
|
|
|
return this; |
|
|
|
} else { |
|
|
|
return this.off(ev, h); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
fn.click = function (h) { |
|
|
|
|