Skip to content

Commit c2d800d

Browse files
committed
Merge pull request angular-ui#12 from mauricelam/master
Support minification
2 parents 3408636 + 1517ff9 commit c2d800d

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/angular-google-maps.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,17 @@
293293
*/
294294
googleMapsModule.directive("googleMap", ["$log", "$timeout", "$filter", function ($log, $timeout,
295295
$filter) {
296+
297+
var controller = function ($scope, $element) {
298+
299+
var _m = $scope.map;
300+
301+
self.addInfoWindow = function (lat, lng, content) {
302+
_m.addInfoWindow(lat, lng, content);
303+
};
304+
};
305+
306+
controller.$inject = ['$scope', '$element'];
296307

297308
return {
298309
restrict: "EC",
@@ -309,14 +320,7 @@
309320
refresh: "&refresh", // optional
310321
windows: "=windows" // optional"
311322
},
312-
controller: function ($scope, $element) {
313-
314-
var _m = $scope.map;
315-
316-
self.addInfoWindow = function (lat, lng, content) {
317-
_m.addInfoWindow(lat, lng, content);
318-
};
319-
},
323+
controller: controller,
320324
link: function (scope, element, attrs, ctrl) {
321325

322326
// Center property must be specified and provide lat &

0 commit comments

Comments
 (0)