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

Commit 0068074

Browse files
committed
undo directive extension workaround for angular1.2
1 parent ad64d36 commit 0068074

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/drawDirective.coffee

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ angular.module('ui-leaflet')
44
#Extend root leaflet directive
55
$provide.decorator 'leafletDirective', ($delegate) ->
66
directive = $delegate[0]
7-
#directive.scope[directiveName] = '=?' #the way it should be
8-
#the above should derrive $$isolateBindings this without the below hack
9-
#workaround from http://plnkr.co/edit/CRxhX6?p=preview
10-
directive.$$isolateBindings[directiveName] =
7+
directive.scope[directiveName] = '=?' #angular1.2.x
8+
#angular^1.3, https://github.com/angular/angular.js/issues/10149
9+
directive.$$isolateBindings?[directiveName] =
1110
attrName: directiveName
1211
mode: '='
1312
optional: true

0 commit comments

Comments
 (0)