Skip to content

Commit

Permalink
refactoring filenames
Browse files Browse the repository at this point in the history
	renamed:    tests/test.html -> examples/example.html
	renamed:    tests/test.js -> examples/example.js
	modified:   microevent.js
  • Loading branch information
jeromeetienne committed Mar 22, 2011
1 parent e601785 commit 2193463
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions microevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ var MicroEvent = function(){}
MicroEvent.prototype = {
fcts : {},
bind : function(event, fct){
this.fcts[event] = this.fcts[event] || [];
this.fcts[event] = this.fcts[event] || [];
this.fcts[event].push(fct);
},
unbind : function(event, fct){
if( event in this.fcts === false ) return this;
if( event in this.fcts === false ) return;
this.fcts[event].splice(this.fcts[event].indexOf(fct), 1);
},
trigger : function(event /* , args... */){
Expand Down Expand Up @@ -47,6 +47,6 @@ MicroEvent.mixin = function(destObject){
}

// export in common js
if( typeof module !== "undefined"){
if( typeof module !== "undefined" && ('exports' in module)){
module.exports = MicroEvent
}

0 comments on commit 2193463

Please sign in to comment.