Browse Source

Build dist v0.13.7

pull/798/merge
Artur Arseniev 8 years ago
parent
commit
a63fe5ab0f
  1. 46
      dist/grapes.js
  2. 6
      dist/grapes.min.js
  3. 2
      package-lock.json
  4. 2
      package.json

46
dist/grapes.js

@ -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) {

6
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "grapesjs",
"version": "0.13.6",
"version": "0.13.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.13.6",
"version": "0.13.7",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

Loading…
Cancel
Save