Fixed load add

This commit is contained in:
Richard Davey
2013-08-09 16:56:38 +01:00
parent c2f0128797
commit e002827a20
+2 -1
View File
@@ -309,7 +309,7 @@ module Phaser {
//this.physics = new Phaser.Physics.Manager(this);
this.plugins = new Phaser.PluginManager(this, this);
this.load.onLoadComplete.addOnce(this.loadComplete, this);
this.load.onLoadComplete.add(this.loadComplete, this);
this.setRenderer(Phaser.Types.RENDERER_CANVAS);
@@ -464,6 +464,7 @@ module Phaser {
else
{
// Start the loader going as we have something in the queue
this.load.onLoadComplete.add(this.loadComplete, this);
this.load.start();
}
}