File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242* Fix ParticleEmitter toJSON output, it was missing the ` angle ` property and the Emitter Ops were being cast wrong (thanks @samme )
4343* Fixed loading normals with multi image load (thanks @iamchristopher )
4444* Array.AddAt would fail if it branched to the fast-path within a Container due to an invalid property. Fix #3617 (thanks @poasher )
45+ * Polygon.setTo would fail if given an array of arrays as a list of points. Fix #3619 (thanks @PaulTodd )
4546
4647### Examples, Documentation and TypeScript
4748
Original file line number Diff line number Diff line change @@ -94,9 +94,8 @@ var Polygon = new Class({
9494 return this ;
9595 }
9696
97- var entry ;
98- var y0 = Number . MAX_VALUE ;
9997 var p ;
98+ var y0 = Number . MAX_VALUE ;
10099
101100 // The points argument is an array, so iterate through it
102101 for ( var i = 0 ; i < points . length ; i ++ )
@@ -109,7 +108,7 @@ var Polygon = new Class({
109108 p . y = points [ i + 1 ] ;
110109 i ++ ;
111110 }
112- else if ( Array . isArray ( entry ) )
111+ else if ( Array . isArray ( points [ i ] ) )
113112 {
114113 // An array of arrays?
115114 p . x = points [ i ] [ 0 ] ;
You can’t perform that action at this time.
0 commit comments