From 2225c5a9691d20f3c0bff7b1158032e96b307c4b Mon Sep 17 00:00:00 2001 From: Tam Date: Thu, 2 Jun 2016 13:00:20 +0100 Subject: [PATCH] v1.1.2 Fix #5 via @jripmeester - Fixed Lat / Lng being populated with function, not number. --- README.md | 3 +++ SimpleMapPlugin.php | 2 +- releases.json | 8 ++++++++ resources/SimpleMap_Map.js | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) 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; };