Skip to content

Commit 23cdb4b

Browse files
committed
v0.8.5b patch
1 parent f6ee24a commit 23cdb4b

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

dist/vue.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ CompilerProto.bindDirective = function (directive) {
12891289

12901290
// for empty or literal directives, simply call its bind()
12911291
// and we're done.
1292-
if (directive.isEmpty || directive.isLiteral) {
1292+
if (directive.isEmpty || !directive._update) {
12931293
if (directive.bind) directive.bind()
12941294
return
12951295
}
@@ -2226,13 +2226,6 @@ function Directive (definition, expression, rawKey, compiler, node) {
22262226
return
22272227
}
22282228

2229-
// for literal directives, all we need
2230-
// is the expression as the value.
2231-
if (this.isLiteral) {
2232-
this.value = expression.trim()
2233-
return
2234-
}
2235-
22362229
this.expression = expression.trim()
22372230
this.rawKey = rawKey
22382231

@@ -3249,11 +3242,6 @@ module.exports = {
32493242
}
32503243
})
32513244
}
3252-
// in case `$destroy` is called directly on a repeated vm
3253-
// make sure the vm's data is properly removed
3254-
item.$compiler.observer.on('hook:afterDestroy', function () {
3255-
col.remove(data)
3256-
})
32573245
}
32583246
},
32593247

0 commit comments

Comments
 (0)