@@ -22,25 +22,16 @@ export class Attributes {
2222 static $nonscope = true ;
2323
2424 /**
25- * @param {ng.RootScopeService } $rootScope
2625 * @param {ng.AnimateService } $animate
2726 * @param {ng.ExceptionHandlerService } $exceptionHandler
2827 * @param {* } $sce
2928 * @param {import("../../shared/noderef.js").NodeRef } [nodeRef]
3029 * @param {Object } [attributesToCopy]
3130 */
32- constructor (
33- $rootScope ,
34- $animate ,
35- $exceptionHandler ,
36- $sce ,
37- nodeRef ,
38- attributesToCopy ,
39- ) {
40- this . $rootScope = $rootScope ;
41- this . $animate = $animate ;
42- this . $exceptionHandler = $exceptionHandler ;
43- this . $sce = $sce ;
31+ constructor ( $animate , $exceptionHandler , $sce , nodeRef , attributesToCopy ) {
32+ this . _$animate = $animate ;
33+ this . _$exceptionHandler = $exceptionHandler ;
34+ this . _$sce = $sce ;
4435
4536 if ( attributesToCopy ) {
4637 const keys = Object . keys ( attributesToCopy ) ;
@@ -84,7 +75,7 @@ export class Attributes {
8475 $addClass ( classVal ) {
8576 if ( classVal && classVal . length > 0 ) {
8677 if ( hasAnimate ( this . $$element ) ) {
87- this . $animate . addClass (
78+ this . _ $animate. addClass (
8879 /** @type {Element } */ ( this . $$element ) ,
8980 classVal ,
9081 ) ;
@@ -103,7 +94,7 @@ export class Attributes {
10394 $removeClass ( classVal ) {
10495 if ( classVal && classVal . length > 0 ) {
10596 if ( hasAnimate ( this . $$element ) ) {
106- this . $animate . removeClass (
97+ this . _ $animate. removeClass (
10798 /** @type {Element } */ ( this . $$element ) ,
10899 classVal ,
109100 ) ;
@@ -125,7 +116,7 @@ export class Attributes {
125116
126117 if ( toAdd && toAdd . length ) {
127118 if ( hasAnimate ( this . $$element ) ) {
128- this . $animate . addClass ( /** @type {Element }*/ ( this . $$element ) , toAdd ) ;
119+ this . _ $animate. addClass ( /** @type {Element }*/ ( this . $$element ) , toAdd ) ;
129120 } else {
130121 this . $nodeRef . element . classList . add ( ...toAdd . trim ( ) . split ( / \s + / ) ) ;
131122 }
@@ -134,7 +125,7 @@ export class Attributes {
134125
135126 if ( toRemove && toRemove . length ) {
136127 if ( hasAnimate ( this . $$element ) ) {
137- this . $animate . removeClass (
128+ this . _ $animate. removeClass (
138129 /** @type {Element }*/ ( this . $$element ) ,
139130 toRemove ,
140131 ) ;
@@ -228,7 +219,7 @@ export class Attributes {
228219 try {
229220 fn ( value ) ;
230221 } catch ( err ) {
231- this . $exceptionHandler ( err ) ;
222+ this . _ $exceptionHandler( err ) ;
232223 }
233224 } ) ;
234225 }
@@ -327,7 +318,7 @@ export class Attributes {
327318 const innerIdx = i * 2 ;
328319
329320 // sanitize the uri
330- result += this . $sce . getTrustedMediaUrl ( trim ( rawUris [ innerIdx ] ) ) ;
321+ result += this . _ $sce. getTrustedMediaUrl ( trim ( rawUris [ innerIdx ] ) ) ;
331322 // add the descriptor
332323 result += ` ${ trim ( rawUris [ innerIdx + 1 ] ) } ` ;
333324 }
@@ -336,7 +327,7 @@ export class Attributes {
336327 const lastTuple = trim ( rawUris [ i * 2 ] ) . split ( / \s / ) ;
337328
338329 // sanitize the last uri
339- result += this . $sce . getTrustedMediaUrl ( trim ( lastTuple [ 0 ] ) ) ;
330+ result += this . _ $sce. getTrustedMediaUrl ( trim ( lastTuple [ 0 ] ) ) ;
340331
341332 // and add the last descriptor if any
342333 if ( lastTuple . length === 2 ) {
0 commit comments