Skip to content

Commit eee1294

Browse files
committed
switched to transclude function supplied to linker vs. compile
1 parent bc896a2 commit eee1294

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ui-scroll.coffee

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ angular.module('ui.scroll', [])
3434
priority: 1000
3535
terminal: true
3636

37-
compile: (elementTemplate, attr, linker) ->
38-
($scope, element, $attr, controllers) ->
37+
compile: (elementTemplate, attr, compileLinker) ->
38+
($scope, element, $attr, controllers, linker) ->
39+
40+
#starting from angular 1.2 compileLinker usage is deprecated
41+
linker = linker || compileLinker
3942

4043
log = console.debug || console.log
4144

0 commit comments

Comments
 (0)