Skip to content

Commit c71c6a4

Browse files
committed
Release-v0.8.4
1 parent 0f448b8 commit c71c6a4

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"main": "dist/vue.js",
55
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
66
"authors": ["Evan You <[email protected]>"],

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"main": "src/main.js",
55
"author": "Evan You <[email protected]>",
66
"description": "Simple, Fast & Composable MVVM for building interative interfaces",

dist/vue.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Vue.js v0.8.3
2+
Vue.js v0.8.4
33
(c) 2014 Evan You
44
License: MIT
55
*/
@@ -1152,7 +1152,7 @@ CompilerProto.compile = function (node, root) {
11521152
*/
11531153
CompilerProto.compileNode = function (node) {
11541154
var i, j,
1155-
attrs = node.attributes,
1155+
attrs = slice.call(node.attributes),
11561156
prefix = config.prefix + '-'
11571157
// parse if has attributes
11581158
if (attrs && attrs.length) {
@@ -1259,9 +1259,9 @@ CompilerProto.bindDirective = function (directive) {
12591259
// keep track of it so we can unbind() later
12601260
this.dirs.push(directive)
12611261

1262-
// for a simple directive, simply call its bind() or _update()
1262+
// for empty or literal directives, simply call its bind()
12631263
// and we're done.
1264-
if (directive.isEmpty) {
1264+
if (directive.isEmpty || directive.isLiteral) {
12651265
if (directive.bind) directive.bind()
12661266
return
12671267
}
@@ -2190,6 +2190,13 @@ function Directive (definition, expression, rawKey, compiler, node) {
21902190
return
21912191
}
21922192

2193+
// for literal directives, all we need
2194+
// is the expression as the value.
2195+
if (this.isLiteral) {
2196+
this.value = expression.trim()
2197+
return
2198+
}
2199+
21932200
this.expression = expression.trim()
21942201
this.rawKey = rawKey
21952202

dist/vue.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"author": {
55
"name": "Evan You",
66
"email": "[email protected]",

0 commit comments

Comments
 (0)