File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ var Group = new Class({
239239 */
240240 this . createMultipleCallback = GetFastValue ( config , 'createMultipleCallback' , null ) ;
241241
242- if ( config && config . key !== undefined )
242+ if ( config )
243243 {
244244 this . createMultiple ( config ) ;
245245 }
@@ -299,8 +299,7 @@ var Group = new Class({
299299 *
300300 * If the group becomes {@link Phaser.GameObjects.Group#isFull}, no further Game Objects are created.
301301 *
302- * Calls {@link Phaser.GameObjects.Group#createMultipleCallback}
303- * and {@link Phaser.GameObjects.Group#createCallback}.
302+ * Calls {@link Phaser.GameObjects.Group#createMultipleCallback} and {@link Phaser.GameObjects.Group#createCallback}.
304303 *
305304 * @method Phaser.GameObjects.Group#createMultiple
306305 * @since 3.0.0
@@ -321,6 +320,11 @@ var Group = new Class({
321320 config = [ config ] ;
322321 }
323322
323+ if ( config [ 0 ] . key === undefined )
324+ {
325+ return [ ] ;
326+ }
327+
324328 var output = [ ] ;
325329
326330 for ( var i = 0 ; i < config . length ; i ++ )
You can’t perform that action at this time.
0 commit comments