Skip to content

Commit

Permalink
Bump version to 1.0.1!
Browse files Browse the repository at this point in the history
  • Loading branch information
openfirmware committed Jun 4, 2015
1 parent 5fec1bc commit 8aab03b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polarmap.js",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"James Badger <[email protected]>"
],
Expand Down
15 changes: 13 additions & 2 deletions dist/polarmap-src.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
PolarMap.js 1.0.0 (4cd4971)
PolarMap.js 1.0.1 (5fec1bc)
(c) 2014-2015 Arctic Connect, Geo Sensor Web Lab
*/
(function (window, document, L, undefined) {
Expand All @@ -8,7 +8,7 @@ if (typeof(L) === "undefined") {
}

L.PolarMap = {
version: '1.0.0',
version: '1.0.1',
Control: {},
Util: {}
};
Expand Down Expand Up @@ -463,6 +463,17 @@ L.PolarMap.Map = L.Map.extend({
}
},

// Manually remove layers before destroying map.
// See https://github.com/Leaflet/Leaflet/issues/2718
remove: function () {
for (var i in this._layers) {
this.removeLayer(this._layers[i]);
}

L.Map.prototype.remove.call(this);
return this;
},

// Private Functions
_defineMapCRS: function (crs, options) {
var resolutions = [];
Expand Down
Loading

0 comments on commit 8aab03b

Please sign in to comment.