Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit ee25fe3

Browse files
authored
Merge pull request #22 from eugenehuanggy/strictdi
Build dist for ng-strict-di changes
2 parents bb76bbc + eddf8a2 commit ee25fe3

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

dist/ui-leaflet-draw.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @version: 0.0.5
55
* @author: Nicholas McCready
6-
* @date: Sat Mar 18 2017 16:04:33 GMT-0400 (EDT)
6+
* @date: Fri Jun 30 2017 20:28:47 GMT+0800 (+08)
77
* @license: MIT
88
*/
99

@@ -68,15 +68,17 @@
6868
scope: false,
6969
replace: false,
7070
require: ['leaflet'],
71-
controller: function($scope) {
72-
this._deferredDrawTool = $q.defer();
73-
this.getDrawTool = function() {
74-
return this._deferredDrawTool.promise;
75-
};
76-
return this.getScope = function() {
77-
return $scope;
78-
};
79-
},
71+
controller: [
72+
'$scope', function($scope) {
73+
this._deferredDrawTool = $q.defer();
74+
this.getDrawTool = function() {
75+
return this._deferredDrawTool.promise;
76+
};
77+
return this.getScope = function() {
78+
return $scope;
79+
};
80+
}
81+
],
8082
link: function(scope, element, attrs, controller) {
8183
var _deferred, _featureGroup, _optionsEditedInDirective, leafletScope, mapController;
8284
mapController = controller[0];
@@ -138,4 +140,4 @@
138140

139141
}).call(this);
140142

141-
})(window, angular);
143+
})(window, angular);

0 commit comments

Comments
 (0)