File tree 2 files changed +3
-4
lines changed
test/unit/specs/directives/internal
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,7 @@ function setObjectClasses (el, obj) {
72
72
function stringToObject ( value ) {
73
73
var res = { }
74
74
var keys = value . trim ( ) . split ( / \s + / )
75
- var i = keys . length
76
- while ( i -- ) {
75
+ for ( var i = 0 , l = keys . length ; i < l ; i ++ ) {
77
76
res [ keys [ i ] ] = true
78
77
}
79
78
return res
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ describe(':class', function () {
13
13
dir . update ( 'test' )
14
14
expect ( el . className ) . toBe ( 'haha test' )
15
15
dir . update ( 'what now test' )
16
- expect ( el . className ) . toBe ( 'haha test now what ' )
16
+ expect ( el . className ) . toBe ( 'haha what now test ' )
17
17
dir . update ( 'ok cool' )
18
- expect ( el . className ) . toBe ( 'haha cool ok ' )
18
+ expect ( el . className ) . toBe ( 'haha ok cool ' )
19
19
dir . update ( )
20
20
expect ( el . className ) . toBe ( 'haha' )
21
21
} )
You can’t perform that action at this time.
0 commit comments