Skip to content

Commit

Permalink
Bumped version to 2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Jun 10, 2018
1 parent 70419b8 commit c42e74c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
7 changes: 6 additions & 1 deletion dist/cash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,16 @@ fn.on = function (eventFullName, selector, callback, _one) {
}

event.namespace = event.namespace || '';
callback.call(thisArg, event, event.data);
var returnValue = callback.call(thisArg, event, event.data);

if (_one) {
removeEvent(ele, name, namespaces, finalCallback);
}

if (returnValue === false) {
event.preventDefault();
event.stopPropagation();
}
};

finalCallback.guid = callback.guid = callback.guid || guid++;
Expand Down
7 changes: 6 additions & 1 deletion dist/cash.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,16 @@ fn.on = function (eventFullName, selector, callback, _one) {
}

event.namespace = event.namespace || '';
callback.call(thisArg, event, event.data);
var returnValue = callback.call(thisArg, event, event.data);

if (_one) {
removeEvent(ele, name, namespaces, finalCallback);
}

if (returnValue === false) {
event.preventDefault();
event.stopPropagation();
}
};

finalCallback.guid = callback.guid = callback.guid || guid++;
Expand Down
11 changes: 5 additions & 6 deletions dist/cash.min.js

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

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": "cash-dom",
"description": "An absurdly small jQuery alternative for modern browsers.",
"version": "2.1.7",
"version": "2.1.8",
"license": "MIT",
"main": "./dist/cash.js",
"module": "./dist/cash.esm.js",
Expand Down

0 comments on commit c42e74c

Please sign in to comment.