From 4c43da5fcf4c79a9793dc12ea4f69f0302a39efa Mon Sep 17 00:00:00 2001 From: Eugene Huang Date: Thu, 30 Mar 2017 16:27:54 +0800 Subject: [PATCH 1/3] Directive to search parent for leaflet directive --- dist/ui-leaflet-draw.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/ui-leaflet-draw.js b/dist/ui-leaflet-draw.js index 720aad6..602dc35 100644 --- a/dist/ui-leaflet-draw.js +++ b/dist/ui-leaflet-draw.js @@ -3,7 +3,7 @@ * * @version: 0.0.5 * @author: Nicholas McCready - * @date: Sat Mar 18 2017 16:04:33 GMT-0400 (EDT) + * @date: Thu Mar 30 2017 23:48:17 GMT+0800 (SGT) * @license: MIT */ @@ -67,7 +67,7 @@ restrict: 'A', scope: false, replace: false, - require: ['leaflet'], + require: ['^leaflet'], controller: function($scope) { this._deferredDrawTool = $q.defer(); this.getDrawTool = function() { @@ -138,4 +138,4 @@ }).call(this); -})(window, angular); +})(window, angular); \ No newline at end of file From 210a60eb61021ba99be53e6659fee9dd813cf8ae Mon Sep 17 00:00:00 2001 From: Eugene Huang Date: Thu, 30 Mar 2017 23:53:08 +0800 Subject: [PATCH 2/3] Built dist for draw directive changes --- dist/ui-leaflet-draw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/ui-leaflet-draw.js b/dist/ui-leaflet-draw.js index 602dc35..5f5f492 100644 --- a/dist/ui-leaflet-draw.js +++ b/dist/ui-leaflet-draw.js @@ -3,7 +3,7 @@ * * @version: 0.0.5 * @author: Nicholas McCready - * @date: Thu Mar 30 2017 23:48:17 GMT+0800 (SGT) + * @date: Thu Mar 30 2017 23:52:35 GMT+0800 (SGT) * @license: MIT */ From 4098e25c8957d2ac177b791e317ed1a168041203 Mon Sep 17 00:00:00 2001 From: Eugene Huang Date: Fri, 30 Jun 2017 20:29:22 +0800 Subject: [PATCH 3/3] Build dist for ng-strict-di changes --- dist/ui-leaflet-draw.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/dist/ui-leaflet-draw.js b/dist/ui-leaflet-draw.js index 5f5f492..b09bcad 100644 --- a/dist/ui-leaflet-draw.js +++ b/dist/ui-leaflet-draw.js @@ -3,7 +3,7 @@ * * @version: 0.0.5 * @author: Nicholas McCready - * @date: Thu Mar 30 2017 23:52:35 GMT+0800 (SGT) + * @date: Fri Jun 30 2017 20:28:47 GMT+0800 (+08) * @license: MIT */ @@ -67,16 +67,18 @@ restrict: 'A', scope: false, replace: false, - require: ['^leaflet'], - controller: function($scope) { - this._deferredDrawTool = $q.defer(); - this.getDrawTool = function() { - return this._deferredDrawTool.promise; - }; - return this.getScope = function() { - return $scope; - }; - }, + require: ['leaflet'], + controller: [ + '$scope', function($scope) { + this._deferredDrawTool = $q.defer(); + this.getDrawTool = function() { + return this._deferredDrawTool.promise; + }; + return this.getScope = function() { + return $scope; + }; + } + ], link: function(scope, element, attrs, controller) { var _deferred, _featureGroup, _optionsEditedInDirective, leafletScope, mapController; mapController = controller[0];