mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Updated docs for 1.1.2 release.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* Phaser - http://www.phaser.io
|
||||
*
|
||||
* v1.1.1 - Released October 26th 2013.
|
||||
* v1.1.2 - Released November 1st 2013.
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
||||
+7
-4
@@ -763,7 +763,7 @@ Phaser.Group.prototype = {
|
||||
*/
|
||||
callAll: function (method, context) {
|
||||
|
||||
if (typeof method == 'undefined')
|
||||
if (typeof method === 'undefined')
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -773,15 +773,18 @@ Phaser.Group.prototype = {
|
||||
|
||||
var methodLength = method.length;
|
||||
|
||||
if (typeof context == 'undefined')
|
||||
if (typeof context === 'undefined')
|
||||
{
|
||||
context = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Extract the context into an array
|
||||
context = context.split('.');
|
||||
var contextLength = context.length;
|
||||
if (typeof context === 'string')
|
||||
{
|
||||
context = context.split('.');
|
||||
var contextLength = context.length;
|
||||
}
|
||||
}
|
||||
|
||||
var args = Array.prototype.splice.call(arguments, 2);
|
||||
|
||||
Reference in New Issue
Block a user