@@ -34,7 +34,7 @@ import {
3434import { UIViewData } from './viewDirective' ;
3535
3636/** @hidden Used for typedoc */
37- export interface ng1_directive { } // tslint:disable-line:class-name
37+ export interface ng1_directive { }
3838
3939/** @hidden */
4040function parseStateRef ( ref : string ) {
@@ -294,7 +294,6 @@ uiSrefDirective = [
294294 const type = getTypeInfo ( element ) ;
295295 const active = uiSrefActive [ 1 ] || uiSrefActive [ 0 ] ;
296296 let unlinkInfoFn : Function = null ;
297- let hookFn ;
298297
299298 const rawDef = { } as Def ;
300299 const getDef = ( ) => processedDef ( $state , element , rawDef ) ;
@@ -328,7 +327,7 @@ uiSrefDirective = [
328327 scope . $on ( '$destroy' , < any > $uiRouter . transitionService . onSuccess ( { } , update ) ) ;
329328
330329 if ( ! type . clickable ) return ;
331- hookFn = clickHook ( element , $state , $timeout , type , getDef ) ;
330+ const hookFn = clickHook ( element , $state , $timeout , type , getDef ) ;
332331 bindEvents ( element , scope , hookFn , rawDef . uiStateOpts ) ;
333332 } ,
334333 } ;
0 commit comments