Merge pull request #232 from carlrobert/patch-12
constructor spelling ...
This commit is contained in:
commit
defce04a45
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