Skip to content

Commit

Permalink
Bumped version, rebuilt.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstart committed Mar 27, 2016
1 parent 4dfa0ce commit 04a3ab1
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixi-particles",
"version": "1.6.2",
"version": "1.6.3",
"main": "dist/pixi-particles.min.js",
"dependencies": {
"pixi.js": "*"
Expand Down
5 changes: 3 additions & 2 deletions dist/modules/animated-particle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pixi-particles 1.6.2 */
/*! pixi-particles 1.6.3 */
/**
* @module Animated Particle
* @namespace PIXI.particles
Expand Down Expand Up @@ -150,13 +150,14 @@
}
};

p.Particle_destroy = Particle.prototype.destroy;
/**
* Destroys the particle, removing references and preventing future use.
* @method destroy
*/
p.destroy = function()
{
s.destroy.call(this);
this.Particle_destroy();
};

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/modules/animated-particle.min.js

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

5 changes: 3 additions & 2 deletions dist/modules/path-particle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pixi-particles 1.6.2 */
/*! pixi-particles 1.6.3 */
/**
* @module Path Particle
* @namespace PIXI.particles
Expand Down Expand Up @@ -174,13 +174,14 @@
}
};

p.Particle_destroy = Particle.prototype.destroy;
/**
* Destroys the particle, removing references and preventing future use.
* @method destroy
*/
p.destroy = function()
{
s.destroy.call(this);
this.Particle_destroy();
};

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/modules/path-particle.min.js

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

24 changes: 16 additions & 8 deletions dist/pixi-particles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pixi-particles 1.6.2 */
/*! pixi-particles 1.6.3 */
/**
* @module Pixi Particles
* @namespace window
Expand Down Expand Up @@ -42,7 +42,7 @@ if(!Array.prototype.random)
return this[Math.floor(Math.random() * this.length)];
}
});
}
}
/**
* @module Pixi Particles
* @namespace PIXI.particles
Expand Down Expand Up @@ -86,7 +86,7 @@ if(!Array.prototype.random)
// Assign to global namespace
global.PIXI.particles = particles;

}());
}());
/**
* @module Pixi Particles
* @namespace PIXI.particles
Expand All @@ -107,7 +107,7 @@ if(!Array.prototype.random)
var DEG_TO_RADS = ParticleUtils.DEG_TO_RADS = Math.PI / 180;

ParticleUtils.useAPI3 = false;
// avoid the string replacement of '"1.6.2"'
// avoid the string replacement of '"1.6.3"'
var version = PIXI["VER"+"SION"];// jshint ignore:line
if(version && parseInt(version.substring(0, version.indexOf("."))) >= 3)
{
Expand Down Expand Up @@ -268,7 +268,7 @@ if(!Array.prototype.random)

PIXI.particles.ParticleUtils = ParticleUtils;

}(PIXI));
}(PIXI));
/**
* @module Pixi Particles
* @namespace PIXI.particles
Expand Down Expand Up @@ -673,12 +673,15 @@ if(!Array.prototype.random)
this.emitter.recycle(this);
};

p.Sprite_Destroy = Sprite.prototype.destroy;
/**
* Destroys the particle, removing references and preventing future use.
* @method destroy
*/
p.destroy = function()
{
if (this.Sprite_Destroy)
this.Sprite_Destroy();
this.emitter = this.velocity = this.startColor = this.endColor = this.ease =
this.next = this.prev = null;
};
Expand Down Expand Up @@ -736,7 +739,7 @@ if(!Array.prototype.random)
PIXI.particles.Particle = Particle;

}(PIXI));


/**
* @module Pixi Particles
* @namespace PIXI.particles
Expand Down Expand Up @@ -1800,9 +1803,14 @@ if(!Array.prototype.random)
*/
p.destroy = function()
{
//puts all active particles in the pool, and removes them from the particle parent
this.cleanup();
for (var particle = this._poolFirst; particle; particle = particle.next)
//wipe the pool clean
var next;
for (var particle = this._poolFirst; particle; particle = next)
{
//store next value so we don't lose it in our destroy call
next = particle.next;
particle.destroy();
}
this._poolFirst = this._parent = this.particleImages = this.spawnPos = this.ownerPos =
Expand All @@ -1812,7 +1820,7 @@ if(!Array.prototype.random)
PIXI.particles.Emitter = Emitter;

}(PIXI));


(function(undefined){

// Check for window, fallback to global
Expand Down
4 changes: 2 additions & 2 deletions dist/pixi-particles.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixi-particles",
"version": "1.6.2",
"version": "1.6.3",
"description": "Particle system for PixiJS",
"url": "http://github.com/pixijs/pixi-particles",
"output": "pixi-particles",
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": "pixi-particles",
"version": "1.6.2",
"version": "1.6.3",
"main": "dist/pixi-particles.min.js",
"description": "Particle emitter for Pixi.js",
"author": "Andrew Start <[email protected]>",
Expand Down

0 comments on commit 04a3ab1

Please sign in to comment.