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

Commit ae24bd1

Browse files
committed
Merge pull request #105 from trafficland/r1-dev
fixed broken minified
2 parents 4f9627f + f5a464d commit ae24bd1

File tree

7 files changed

+30
-33
lines changed

7 files changed

+30
-33
lines changed

Gruntfile.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,7 @@ module.exports = function(grunt) {
7272
dest: 'tmp/output.js'
7373
},
7474
example: {
75-
src: ['src/js/module.js',
76-
'tmp/output_coffee.js',
77-
'src/js/utils/markerclusterer-r438.js',
78-
'src/js/utils/LatLngArraySync.js',
79-
'src/js/utils/MapEvents.js',
80-
'src/js/controllers/polyline-display.js',
81-
'src/js/directives/map.js',
82-
'src/js/directives/marker.js',
83-
'src/js/directives/markers.js',
84-
'src/js/directives/polygon.js',
85-
'src/js/directives/polyline.js',
86-
'src/js/directives/window.js',
87-
'src/js/directives/windows.js',
88-
'src/js/directives/trafficlayer.js'],
75+
src: ['dist/angular-google-maps.min.js'],
8976
dest: 'example/<%= pkg.name %>.js'
9077
}
9178
},

dist/angular-google-maps.js

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,12 @@
13331333
};
13341334
}
13351335

1336-
IMarker.prototype.controller = function($scope, $element) {
1337-
throw new Exception("Not Implemented!!");
1336+
IMarker.prototype.controller = {
1337+
controller: [
1338+
'$scope', '$element', function($scope, $element) {
1339+
throw new Exception("Not Implemented!!");
1340+
}
1341+
]
13381342
};
13391343

13401344
IMarker.prototype.link = function(scope, element, attrs, ctrl) {
@@ -1422,11 +1426,13 @@
14221426
this.$log.info(this);
14231427
}
14241428

1425-
Marker.prototype.controller = function($scope, $element) {
1426-
return this.getMarker = function() {
1427-
return $element.data('instance');
1428-
};
1429-
};
1429+
Marker.prototype.controller = [
1430+
'$scope', '$element', function($scope, $element) {
1431+
return this.getMarker = function() {
1432+
return $element.data('instance');
1433+
};
1434+
}
1435+
];
14301436

14311437
Marker.prototype.link = function(scope, element, attrs, ctrl) {
14321438
return new directives.api.models.parent.MarkerParentModel(scope, element, attrs, ctrl, this.$timeout);
@@ -1472,11 +1478,13 @@ not 1:1 in this setting.
14721478
this.$log.info(this);
14731479
}
14741480

1475-
Markers.prototype.controller = function($scope, $element) {
1476-
return this.getMarkersScope = function() {
1477-
return $scope;
1478-
};
1479-
};
1481+
Markers.prototype.controller = [
1482+
'$scope', '$element', function($scope, $element) {
1483+
return this.getMarkersScope = function() {
1484+
return $scope;
1485+
};
1486+
}
1487+
];
14801488

14811489
Markers.prototype.link = function(scope, element, attrs, ctrl) {
14821490
return new directives.api.models.parent.MarkersParentModel(scope, element, attrs, ctrl, this.$timeout);

dist/angular-google-maps.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.

example/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h1>angular-google-maps example</h1>
7575
dragging="map.dragging"
7676
bounds="map.bounds"
7777
events="map.events"
78-
options="map.options">
78+
options="map.options">
7979
<trafficlayer show="map.showTraffic" />
8080

8181
<markers models="map.randomMarkers" coords="'self'" icon="'icon'" click="'onClicked'" doCluster="true">

src/coffee/directives/api/i-marker.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
click: '&click',
2424
options: '=options'
2525
}
26-
controller: ($scope, $element) ->
26+
controller: controller: ['$scope','$element', ($scope, $element) ->
2727
throw new Exception("Not Implemented!!")
28+
]
2829
link: (scope, element, attrs, ctrl) =>
2930
throw new Exception("Not implemented!!")

src/coffee/directives/api/marker.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
@template = '<span class="angular-google-map-marker" ng-transclude></span>'
1111
@$log.info(@)
1212

13-
controller:($scope, $element) ->
13+
controller: ['$scope','$element', ($scope, $element) ->
1414
@getMarker = ->
1515
$element.data('instance')
16-
16+
]
1717
link: (scope, element, attrs, ctrl) =>
1818
new directives.api.models.parent.MarkerParentModel(scope, element, attrs, ctrl, @$timeout)

src/coffee/directives/api/markers.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ not 1:1 in this setting.
2020
@$timeout = $timeout
2121
@$log.info(@)
2222

23-
controller:($scope, $element) ->
23+
controller: ['$scope','$element',($scope, $element) ->
2424
@getMarkersScope = ->
2525
$scope
26+
]
2627

2728
link: (scope, element, attrs, ctrl) =>
2829
new directives.api.models.parent.MarkersParentModel(scope, element, attrs, ctrl, @$timeout)

0 commit comments

Comments
 (0)