constructor spelling ...
This commit is contained in:
parent
4bc1e2f582
commit
70f97bea7c
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ Location object.
|
||||||
***/
|
***/
|
||||||
exports.locationFromJSON = function( json ) {
|
exports.locationFromJSON = function( json ) {
|
||||||
var world;
|
var world;
|
||||||
if ( json.constuctor == Array ) {
|
if ( json.constructor == Array ) {
|
||||||
// for support of legacy format
|
// for support of legacy format
|
||||||
world = _world( json[0] );
|
world = _world( json[0] );
|
||||||
return new bkLocation( world, json[1], json[2] , json[3] );
|
return new bkLocation( world, json[1], json[2] , json[3] );
|
||||||
|
|
Reference in a new issue