Skip to content

Commit

Permalink
Build dist v0.13.7
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 20, 2018
1 parent 8dfdfb2 commit a63fe5a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 39 deletions.
46 changes: 12 additions & 34 deletions dist/grapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a63fe5a

Please sign in to comment.