Skip to content

Commit a6fd964

Browse files
committed
Remove terminal: true, replace with priority: 1
This fixes angular 1.5 compability issues. Original idea by @akotlar, just making the pull request. Seems a better solution to leocaseiro#158 than my initial approach.
1 parent 807894a commit a6fd964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chosen.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ angular.module('localytics.directives').directive 'chosen', ['$timeout', ($timeo
3333

3434
restrict: 'A'
3535
require: '?ngModel'
36-
terminal: true
36+
priority: 1
3737
link: (scope, element, attr, ngModel) ->
3838

3939
element.addClass('localytics-chosen')
@@ -106,4 +106,4 @@ angular.module('localytics.directives').directive 'chosen', ['$timeout', ($timeo
106106

107107
scope.$on '$destroy', (event) ->
108108
$timeout.cancel timer if timer?
109-
]
109+
]

0 commit comments

Comments
 (0)