constructor spelling ...

This commit is contained in:
Robert Storlind 2015-04-14 20:14:18 +02:00
parent 4bc1e2f582
commit 70f97bea7c

View file

@ -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] );