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

Commit 59844cb

Browse files
committed
Merge pull request #107 from trafficland/r1-dev
WindowChildModel Click and CloseClick handling bugs
2 parents ae24bd1 + b4d1628 commit 59844cb

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

dist/angular-google-maps.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,15 @@
676676
_this.gWin.open(_this.mapCtrl);
677677
return _this.markerCtrl.setVisible(_this.isIconVisibleOnClick);
678678
});
679-
return google.maps.event.addListener(this.gWin, 'closeclick', function() {
679+
}
680+
return google.maps.event.addListener(this.gWin, 'closeclick', function() {
681+
if (_this.markerCtrl != null) {
680682
_this.markerCtrl.setVisible(_this.initialMarkerVisibility);
683+
}
684+
if (_this.scope.closeClick != null) {
681685
return _this.scope.closeClick();
682-
});
683-
}
686+
}
687+
});
684688
};
685689

686690
WindowChildModel.prototype.showWindow = function() {

0 commit comments

Comments
 (0)