Skip to content

Commit

Permalink
Merge pull request #52 from timble/feature/51-js-prefix
Browse files Browse the repository at this point in the history
#51: Change event prefix to k:
  • Loading branch information
ercanozkaya authored Nov 28, 2018
2 parents 1029733 + e754460 commit ac04b68
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions dist/js/koowa.js
Original file line number Diff line number Diff line change
Expand Up @@ -1419,15 +1419,15 @@ Koowa.Controller = Koowa.Class.extend({
return this;
},
on: function(type, fn){
return this.form.on('koowa:'+type, fn);
return this.form.on('k:'+type, fn);
},

off: function(type, fn){
return this.form.off('koowa:'+type, fn);
return this.form.off('k:'+type, fn);
},

trigger: function(type, args){
var event = $.Event('koowa:'+type);
var event = $.Event('k:'+type);
this.form.trigger(event, args);
return !event.isDefaultPrevented();
},
Expand Down
2 changes: 1 addition & 1 deletion dist/js/koowa.min.js

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

Loading

0 comments on commit ac04b68

Please sign in to comment.