@@ -34,7 +34,7 @@ import {
34
34
import { UIViewData } from './viewDirective' ;
35
35
36
36
/** @hidden Used for typedoc */
37
- export interface ng1_directive { } // tslint:disable-line:class-name
37
+ export interface ng1_directive { }
38
38
39
39
/** @hidden */
40
40
function parseStateRef ( ref : string ) {
@@ -294,7 +294,6 @@ uiSrefDirective = [
294
294
const type = getTypeInfo ( element ) ;
295
295
const active = uiSrefActive [ 1 ] || uiSrefActive [ 0 ] ;
296
296
let unlinkInfoFn : Function = null ;
297
- let hookFn ;
298
297
299
298
const rawDef = { } as Def ;
300
299
const getDef = ( ) => processedDef ( $state , element , rawDef ) ;
@@ -328,7 +327,7 @@ uiSrefDirective = [
328
327
scope . $on ( '$destroy' , < any > $uiRouter . transitionService . onSuccess ( { } , update ) ) ;
329
328
330
329
if ( ! type . clickable ) return ;
331
- hookFn = clickHook ( element , $state , $timeout , type , getDef ) ;
330
+ const hookFn = clickHook ( element , $state , $timeout , type , getDef ) ;
332
331
bindEvents ( element , scope , hookFn , rawDef . uiStateOpts ) ;
333
332
} ,
334
333
} ;
0 commit comments