+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
6
6
*/
7
7
export function addClass (el: Element, cls: ?string) {
8
8
/* istanbul ignore if */
9
-
if (!cls || !cls.trim()) {
9
+
if (!cls || !(cls = cls.trim())) {
10
10
return
11
11
}
12
12
@@ -31,7 +31,7 @@ export function addClass (el: Element, cls: ?string) {
31
31
*/
32
32
export function removeClass (el: Element, cls: ?string) {
33
33
/* istanbul ignore if */
34
-
if (!cls || !cls.trim()) {
34
+
if (!cls || !(cls = cls.trim())) {
35
35
return
36
36
}
37
37
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ if (!isIE9) {
73
73
enter-to-class="hello-to"
74
74
leave-class="bye"
75
75
leave-to-class="bye-to"
76
-
leave-active-class="byebye active">
76
+
leave-active-class="byebye active more ">
77
77
<div v-if="ok" class="test">foo</div>
78
78
</transition>
79
79
</div>
@@ -85,9 +85,9 @@ if (!isIE9) {
85
85
expect(vm.$el.innerHTML).toBe('<div class="test">foo</div>')
86
86
vm.ok = false
87
87
waitForUpdate(() => {
88
-
expect(vm.$el.children[0].className).toBe('test bye byebye active')
88
+
expect(vm.$el.children[0].className).toBe('test bye byebye active more')
89
89
}).thenWaitFor(nextFrame).then(() => {
90
-
expect(vm.$el.children[0].className).toBe('test byebye active bye-to')
90
+
expect(vm.$el.children[0].className).toBe('test byebye active more bye-to')
91
91
}).thenWaitFor(duration + buffer).then(() => {
92
92
expect(vm.$el.children.length).toBe(0)
93
93
vm.ok = true
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4