Permalink
Browse files

cleanup

  • Loading branch information...
1 parent 1b0cabf commit 3b68cf48144acabcad4239fbe7ef98d45cf66a3b @jeromeetienne committed Aug 1, 2012
@@ -1035,8 +1035,9 @@ Fireworks.EffectsStackBuilder.prototype.spawnerOneShot = function(nParticles)
// create the effect itself
Fireworks.createEffect('spawner', {
- start : function(){ spawning = true; },
- stop : function(){ spawning = false; }
+ reset : function(){ nSent = 0; },
+ start : function(){ spawning = true; },
+ stop : function(){ spawning = false;}
}).onPreUpdate(function(deltaTime){
// if spawning is false, do nothing
if( spawning === false ) return;
@@ -3,20 +3,20 @@
* Fireworks.Emitter, sound etc...
*/
Fireworks.ComboEmitter = function(){
-}
+};
/**
* Start the emitter
*/
Fireworks.ComboEmitter.prototype.start = function(){
-}
+};
/**
* Ask to Stop the emitter. It is a gracefull stop, so the emitter may
* keep emit for a while, the time
*/
Fireworks.ComboEmitter.prototype.stop = function(){
-}
+};
/**
* Stop immediatly the emitter
@@ -44,15 +44,15 @@ Fireworks.ComboEmitter.Flamethrower.prototype.start = function(){
Fireworks.ComboEmitter.Flamethrower.prototype.stop = function(){
if( this._state === 'stopped' ) return;
- console.assert( this._state === 'started' )
+ console.assert( this._state === 'started' );
this._state = 'stopped';
this._lastStop = Date.now()/1000;
-}
+};
Fireworks.ComboEmitter.Flamethrower.prototype.ungracefullStop = function(){
this._state = 'stopped';
this._lastStop = 0;
-}
+};
/**
* @return {boolean} true if it is ready, false otherwise
@@ -64,24 +64,24 @@ Fireworks.ComboEmitter.Flamethrower.prototype.isReady = function(){
if( !this._emitterJet ) return false;
// if all previous tests passed, it is ready
return true;
-}
+};
Fireworks.ComboEmitter.Flamethrower.prototype._notifyReadyIfPossible = function(){
if( this.isReady() === false ) return;
this._onReady(this);
-}
+};
//////////////////////////////////////////////////////////////////////////////////
// Getter //
//////////////////////////////////////////////////////////////////////////////////
Fireworks.ComboEmitter.Flamethrower.prototype.object3D = function(){
return this._container;
-}
+};
Fireworks.ComboEmitter.Flamethrower.prototype.sound = function(){
return this._baseSound;
-}
+};
//////////////////////////////////////////////////////////////////////////////////
// rendering loop function //

0 comments on commit 3b68cf4

Please sign in to comment.