Skip to content

Commit

Permalink
currNode can be null, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Sisodiya committed Mar 8, 2015
1 parent b207d13 commit 2e29861
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Latest Release

Older releases
=============
* 1.3.12 - on 8 March 2015

Fixed bug on event binding. currNode can be null

* 1.3.9 - on 8 Feb, 2015

Expand Down Expand Up @@ -57,4 +60,4 @@ Added Concept of EventBus,

* 1.0.1

Added document.querySelector
Added document.querySelector
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "choona.js",
"repo": "nsisodiya/choona.js",
"version": "1.3.11",
"version": "1.3.12",
"main": "dist/choona.js",
"keywords": [
"scalable",
Expand Down
2 changes: 1 addition & 1 deletion dist/choona.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
if (hash === "") {
eventCallback.call(context, e, e.currentTarget, e.currentTarget.dataset);
} else {
while (currNode !== e.currentTarget && currNode !== document) {
while (currNode !== e.currentTarget && currNode !== document && currNode !== null) {
if (currNode.matches(hash) === true) {
eventCallback.call(context, e, currNode, currNode.dataset);
break;
Expand Down
2 changes: 1 addition & 1 deletion dist/choona.min.js

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

Loading

0 comments on commit 2e29861

Please sign in to comment.