Skip to content

Commit e6291c2

Browse files
committed
minor edits
1 parent ff56802 commit e6291c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/parsers/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ function nodeToFragment (node) {
144144
// if its a template tag and the browser supports it,
145145
// its content is already a document fragment. However, iOS Safari has
146146
// bug when using directly cloned template content with touch
147-
// events and can cause crashes the nodes are removed from DOM, so we have
148-
// to treat template elements as string templates. (#2805)
147+
// events and can cause crashes when the nodes are removed from DOM, so we
148+
// have to treat template elements as string templates. (#2805)
149149
if (isRealTemplate(node)) {
150150
return stringToFragment(node.innerHTML)
151151
}

test/unit/specs/directives/public/for/for_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ describe('v-for', function () {
996996
el: document.createElement('div'),
997997
template: '<div v-for="item in items">{{item.name}}</div>',
998998
data: {
999-
items: [Object.freeze({name:'hi'})]
999+
items: [Object.freeze({ name:'hi' })]
10001000
}
10011001
})
10021002
expect('Frozen v-for objects cannot be automatically tracked').toHaveBeenWarned()

0 commit comments

Comments
 (0)