Skip to content

Commit b4ae939

Browse files
committed
fixed NgMap.getMap() without id
1 parent 84786b2 commit b4ae939

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

build/docs/NgMap.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h1 class="title">
190190
<h3 class="subsection-title">Methods</h3>
191191
<dl>
192192
<dt>
193-
<a href="source/NgMap.html#line69" class="name-link">
193+
<a href="source/NgMap.html#line70" class="name-link">
194194
<h4 class="name">
195195
addMap
196196
<span class="signature">(mapController)</span>
@@ -235,7 +235,7 @@ <h5>Returns:</h5>
235235
</dd>
236236
</dl><dl>
237237
<dt>
238-
<a href="source/NgMap.html#line82" class="name-link">
238+
<a href="source/NgMap.html#line83" class="name-link">
239239
<h4 class="name">
240240
deleteMap
241241
<span class="signature">(mapController)</span>
@@ -265,7 +265,7 @@ <h5>Parameters:</h5>
265265
</dd>
266266
</dl><dl>
267267
<dt>
268-
<a href="source/NgMap.html#line113" class="name-link">
268+
<a href="source/NgMap.html#line114" class="name-link">
269269
<h4 class="name">
270270
getGeoLocation
271271
<span class="signature">(address, options)</span>
@@ -390,7 +390,7 @@ <h5>Parameters:</h5>
390390
</dd>
391391
</dl><dl>
392392
<dt>
393-
<a href="source/NgMap.html#line148" class="name-link">
393+
<a href="source/NgMap.html#line149" class="name-link">
394394
<h4 class="name">
395395
observeAndSet
396396
<span class="signature">(attrName, object)</span>
@@ -441,7 +441,7 @@ <h5>Returns:</h5>
441441
</dd>
442442
</dl><dl>
443443
<dt>
444-
<a href="source/NgMap.html#line202" class="name-link">
444+
<a href="source/NgMap.html#line203" class="name-link">
445445
<h4 class="name">
446446
setDefaultOptions
447447
<span class="signature">(options)</span>
@@ -481,7 +481,7 @@ <h5>Parameters:</h5>
481481
</dd>
482482
</dl><dl>
483483
<dt>
484-
<a href="source/NgMap.html#line177" class="name-link">
484+
<a href="source/NgMap.html#line178" class="name-link">
485485
<h4 class="name">
486486
setStyle
487487
<span class="signature">(map)</span>

build/docs/source/NgMap.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ <h1 class="title">
215215
*/
216216
var getMap = function(id) {
217217
id = typeof id === 'object' ? id.id : id;
218+
id = id || 0;
218219
var deferred = $q.defer();
219220
var timeout = 2000;
220221
function waitForMap(timeElapsed){

build/scripts/ng-map.debug.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* AngularJS Google Maps Ver. 1.17.1
2+
* AngularJS Google Maps Ver. 1.17.2
33
*
44
* The MIT License (MIT)
55
*
@@ -2970,6 +2970,7 @@ angular.module('ngMap', []);
29702970
*/
29712971
var getMap = function(id) {
29722972
id = typeof id === 'object' ? id.id : id;
2973+
id = id || 0;
29732974

29742975
var deferred = $q.defer();
29752976
var timeout = 2000;

build/scripts/ng-map.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ factory(root.angular);
88
}
99
}(this, function(angular) {
1010
/**
11-
* AngularJS Google Maps Ver. 1.17.1
11+
* AngularJS Google Maps Ver. 1.17.2
1212
*
1313
* The MIT License (MIT)
1414
*
@@ -2977,6 +2977,7 @@ angular.module('ngMap', []);
29772977
*/
29782978
var getMap = function(id) {
29792979
id = typeof id === 'object' ? id.id : id;
2980+
id = id || 0;
29802981

29812982
var deferred = $q.defer();
29822983
var timeout = 2000;

build/scripts/ng-map.min.js

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

services/ng-map.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
*/
4747
var getMap = function(id) {
4848
id = typeof id === 'object' ? id.id : id;
49+
id = id || 0;
4950

5051
var deferred = $q.defer();
5152
var timeout = 2000;

0 commit comments

Comments
 (0)