Skip to content

Commit

Permalink
bower update subscribable.js > 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Hug committed Feb 1, 2016
1 parent 3331deb commit 17d527f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"tests"
],
"dependencies": {
"subscribable.js": "~2.1.0"
"subscribable.js": "2.x"
}
}
13 changes: 6 additions & 7 deletions bower_components/subscribable.js/.bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "subscribable.js",
"main": "subscribable.js",
"version": "2.1.0",
"version": "2.2.0",
"authors": [
"Daniel Hug <[email protected]>"
],
Expand All @@ -26,14 +26,13 @@
"test",
"tests"
],
"_release": "2.1.0",
"_release": "2.2.0",
"_resolution": {
"type": "version",
"tag": "2.1.0",
"commit": "cf695280e98c7d7d75ca7b9e69fb513d377583fe"
"tag": "2.2.0",
"commit": "6d0dea9b383268791eef4baa69fcc3aff8ea1e85"
},
"_source": "git://github.com/Daniel-Hug/subscribable.js.git",
"_target": "~2.1.0",
"_originalSource": "subscribable.js",
"_direct": true
"_target": "2.x",
"_originalSource": "subscribable.js"
}
3 changes: 3 additions & 0 deletions bower_components/subscribable.js/subscribable.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
this.subscribers[event].push(fn);
}, this);
if (callNow) fn.call(this);
return this;
},

// Pass a space-separated list of events and a function to unsubscribe a specific
Expand All @@ -42,6 +43,7 @@
this.subscribers[event] = [];
}
}
return this;
},

// Notify all the subscribers of an event
Expand All @@ -53,6 +55,7 @@
}
(this.subscribers[event] || []).forEach(caller);
if (event !== 'any') (this.subscribers.any || []).forEach(caller);
return this;
}
};

Expand Down

0 comments on commit 17d527f

Please sign in to comment.