diff --git a/README.md b/README.md index 878d977..65ed831 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ A list of the available values can be found [here](https://developers.google.com ## Changelog +### 1.1.2 +- Fix \#5 via @jripmeester - Fixed Lat / Lng being populated with function, not number. + ### 1.1.1 - Added `parts` to the fieldtype output. diff --git a/SimpleMapPlugin.php b/SimpleMapPlugin.php index dac8fff..709badb 100644 --- a/SimpleMapPlugin.php +++ b/SimpleMapPlugin.php @@ -24,7 +24,7 @@ public function getDescription() public function getVersion() { - return '1.1.1'; + return '1.1.2'; } public function getSchemaVersion() diff --git a/releases.json b/releases.json index b700961..38901b7 100644 --- a/releases.json +++ b/releases.json @@ -42,5 +42,13 @@ "notes": [ "Added `parts` to the fieldtype output." ] + }, + { + "version": "1.1.2", + "downloadUrl": "https://github.com/ethercreative/SimpleMap/archive/v1.1.2.zip", + "date": "2016-06-02T10:00:00-08:00", + "notes": [ + "Fix #5 via @jripmeester - Fixed Lat / Lng being populated with function, not number." + ] } ] \ No newline at end of file diff --git a/resources/SimpleMap_Map.js b/resources/SimpleMap_Map.js index b656bae..b0d59b1 100644 --- a/resources/SimpleMap_Map.js +++ b/resources/SimpleMap_Map.js @@ -247,7 +247,7 @@ SimpleMap.prototype.sync = function (update) { }); }); - if (update) return this.update(pos.lat, pos.lng, true); + if (update) return this.update(pos.lat(), pos.lng(), true); return this; };