Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 99609ba

Browse files
committed
fix(markerManager): /#1449 adding destroy
1 parent 117be87 commit 99609ba

11 files changed

+29
-16
lines changed

dist/angular-google-maps-street-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angular-google-maps 2.1.5 2015-08-24
1+
/*! angular-google-maps 2.1.5 2015-08-25
22
* AngularJS directives for Google Maps
33
* git: https://github.com/angular-ui/angular-google-maps.git
44
*/

dist/angular-google-maps-street-view.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps-street-view_dev_mapped.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps-street-view_dev_mapped.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angular-google-maps 2.1.5 2015-08-24
1+
/*! angular-google-maps 2.1.5 2015-08-25
22
* AngularJS directives for Google Maps
33
* git: https://github.com/angular-ui/angular-google-maps.git
44
*/
@@ -1997,6 +1997,7 @@ Nicholas McCready - https://twitter.com/nmccready
19971997
this.fit = bind(this.fit, this);
19981998
this.handleOptDraw = bind(this.handleOptDraw, this);
19991999
this.clear = bind(this.clear, this);
2000+
this.destroy = bind(this.destroy, this);
20002001
this.draw = bind(this.draw, this);
20012002
this.removeMany = bind(this.removeMany, this);
20022003
this.remove = bind(this.remove, this);
@@ -2084,6 +2085,10 @@ Nicholas McCready - https://twitter.com/nmccready
20842085
})(this));
20852086
};
20862087

2088+
MarkerManager.prototype.destroy = function() {
2089+
return this.clear();
2090+
};
2091+
20872092
MarkerManager.prototype.clear = function() {
20882093
this.gMarkers.each(function(gMarker) {
20892094
return gMarker.setMap(null);

dist/angular-google-maps.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps_dev_mapped.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angular-google-maps 2.1.5 2015-08-24
1+
/*! angular-google-maps 2.1.5 2015-08-25
22
* AngularJS directives for Google Maps
33
* git: https://github.com/angular-ui/angular-google-maps.git
44
*/
@@ -1997,6 +1997,7 @@ Nicholas McCready - https://twitter.com/nmccready
19971997
this.fit = bind(this.fit, this);
19981998
this.handleOptDraw = bind(this.handleOptDraw, this);
19991999
this.clear = bind(this.clear, this);
2000+
this.destroy = bind(this.destroy, this);
20002001
this.draw = bind(this.draw, this);
20012002
this.removeMany = bind(this.removeMany, this);
20022003
this.remove = bind(this.remove, this);
@@ -2084,6 +2085,10 @@ Nicholas McCready - https://twitter.com/nmccready
20842085
})(this));
20852086
};
20862087

2088+
MarkerManager.prototype.destroy = function() {
2089+
return this.clear();
2090+
};
2091+
20872092
MarkerManager.prototype.clear = function() {
20882093
this.gMarkers.each(function(gMarker) {
20892094
return gMarker.setMap(null);

dist/angular-google-maps_dev_mapped.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps_dev_mapped.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-google-maps_dev_mapped.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)