Skip to content

Commit b2b6315

Browse files
authored
Merge pull request phaserjs#3616 from samme/fix/particles
Fix ParticleEmitter#toJSON() output
2 parents 103e0c8 + bd98319 commit b2b6315

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/gameobjects/particles/EmitterOp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ var EmitterOp = new Class({
265265
*/
266266
toJSON: function ()
267267
{
268-
return JSON.stringify(this.propertyValue);
268+
return this.propertyValue;
269269
},
270270

271271
/**

src/gameobjects/particles/ParticleEmitter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ var ParticleEmitter = new Class({
256256
this.configOpMap = [
257257
'accelerationX',
258258
'accelerationY',
259+
'angle',
259260
'alpha',
260261
'bounce',
261262
'delay',

0 commit comments

Comments
 (0)