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

Commit f754404

Browse files
committed
Directive to search parent for leaflet directive
1 parent 3987b69 commit f754404

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/ui-leaflet-draw.js

+3-3
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: Thu Mar 30 2017 23:48:17 GMT+0800 (SGT)
77
* @license: MIT
88
*/
99

@@ -67,7 +67,7 @@
6767
restrict: 'A',
6868
scope: false,
6969
replace: false,
70-
require: ['leaflet'],
70+
require: ['^leaflet'],
7171
controller: function($scope) {
7272
this._deferredDrawTool = $q.defer();
7373
this.getDrawTool = function() {
@@ -137,4 +137,4 @@
137137

138138
}).call(this);
139139

140-
})(window, angular);
140+
})(window, angular);

src/drawDirective.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ angular.module('ui-leaflet')
2424
restrict: 'A'
2525
scope: false
2626
replace: false
27-
require: ['leaflet']
27+
require: ['^leaflet']
2828
controller: ($scope) ->
2929
@_deferredDrawTool = $q.defer()
3030
@getDrawTool = ->

0 commit comments

Comments
 (0)