Skip to content

Commit

Permalink
Rebuilt dist files. Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Scanferla committed Jul 10, 2014
1 parent 21a6d9f commit d038cb5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asteroid",
"version": "0.3.3",
"version": "0.3.4",
"homepage": "https://github.com/mondora/asteroid",
"authors": [
"Paolo Scanferla <[email protected]>"
Expand Down
6 changes: 4 additions & 2 deletions dist/asteroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -992,9 +992,10 @@ Asteroid.Set = Set;
// Subscription class //
////////////////////////

var Subscription = function (name, params, asteroid) {
var Subscription = function (name, params, hash, asteroid) {
this._name = name;
this._params = params;
this._hash = hash;
this._asteroid = asteroid;
// Subscription promises
this._ready = Q.defer();
Expand All @@ -1009,6 +1010,7 @@ Subscription.constructor = Subscription;

Subscription.prototype.stop = function () {
this._asteroid.ddp.unsub(this.id);
delete this._asteroid._subscriptionsCache[this._hash];
};

Subscription.prototype._onReady = function () {
Expand Down Expand Up @@ -1041,7 +1043,7 @@ Asteroid.prototype.subscribe = function (name /* , param1, param2, ... */) {
if (!this._subscriptionsCache[hash]) {
// Collect arguments into array
var params = Array.prototype.slice.call(arguments, 1);
var sub = new Subscription(name, params, this);
var sub = new Subscription(name, params, hash, this);
this._subscriptionsCache[hash] = sub;
this.subscriptions[sub.id] = sub;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/asteroid.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/node.asteroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,10 @@ Asteroid.Set = Set;
// Subscription class //
////////////////////////

var Subscription = function (name, params, asteroid) {
var Subscription = function (name, params, hash, asteroid) {
this._name = name;
this._params = params;
this._hash = hash;
this._asteroid = asteroid;
// Subscription promises
this._ready = Q.defer();
Expand All @@ -804,6 +805,7 @@ Subscription.constructor = Subscription;

Subscription.prototype.stop = function () {
this._asteroid.ddp.unsub(this.id);
delete this._asteroid._subscriptionsCache[this._hash];
};

Subscription.prototype._onReady = function () {
Expand Down Expand Up @@ -836,7 +838,7 @@ Asteroid.prototype.subscribe = function (name /* , param1, param2, ... */) {
if (!this._subscriptionsCache[hash]) {
// Collect arguments into array
var params = Array.prototype.slice.call(arguments, 1);
var sub = new Subscription(name, params, this);
var sub = new Subscription(name, params, hash, this);
this._subscriptionsCache[hash] = sub;
this.subscriptions[sub.id] = sub;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asteroid",
"version": "0.3.3",
"version": "0.3.4",
"description": "Aletrnative Meteor client",
"main": "dist/node.asteroid.js",
"scripts": {
Expand Down

0 comments on commit d038cb5

Please sign in to comment.