Skip to content

Commit

Permalink
addLiveEvent should be have context
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Sisodiya committed Feb 22, 2015
1 parent bce50b4 commit b207d13
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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.10",
"version": "1.3.11",
"main": "dist/choona.js",
"keywords": [
"scalable",
Expand Down
4 changes: 2 additions & 2 deletions dist/choona.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@
//Deletion is needed because if parent get Ended, it should not try to delete the module again.
},
on: function(obj) {
//We use {"eventName hash":"methodName"} kind of notation !
//We use {"eventName hash":"handler"} kind of notation !
var self = this;
choona.Util.for(obj, function(methodName, key) {
key = key.trim().replace(/ +/g, " ");
var arr = key.split(" ");
var eventName = arr.shift();
var hash = arr.join(" ");
var callback = choona.DomEvents.addLiveEventListener(self.$, eventName, hash, self[methodName]);
var callback = choona.DomEvents.addLiveEventListener(self.$, eventName, hash, self[methodName], self);
self._viewMetadata.eventsMap[key] = {
eventName: eventName,
callback: callback
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 b207d13

Please sign in to comment.