Skip to content

Commit

Permalink
Release-v0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 9, 2014
1 parent 0f448b8 commit c71c6a4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.8.3",
"version": "0.8.4",
"main": "dist/vue.js",
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
"authors": ["Evan You <[email protected]>"],
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.8.3",
"version": "0.8.4",
"main": "src/main.js",
"author": "Evan You <[email protected]>",
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
Expand Down
15 changes: 11 additions & 4 deletions dist/vue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Vue.js v0.8.3
Vue.js v0.8.4
(c) 2014 Evan You
License: MIT
*/
Expand Down Expand Up @@ -1152,7 +1152,7 @@ CompilerProto.compile = function (node, root) {
*/
CompilerProto.compileNode = function (node) {
var i, j,
attrs = node.attributes,
attrs = slice.call(node.attributes),
prefix = config.prefix + '-'
// parse if has attributes
if (attrs && attrs.length) {
Expand Down Expand Up @@ -1259,9 +1259,9 @@ CompilerProto.bindDirective = function (directive) {
// keep track of it so we can unbind() later
this.dirs.push(directive)

// for a simple directive, simply call its bind() or _update()
// for empty or literal directives, simply call its bind()
// and we're done.
if (directive.isEmpty) {
if (directive.isEmpty || directive.isLiteral) {
if (directive.bind) directive.bind()
return
}
Expand Down Expand Up @@ -2190,6 +2190,13 @@ function Directive (definition, expression, rawKey, compiler, node) {
return
}

// for literal directives, all we need
// is the expression as the value.
if (this.isLiteral) {
this.value = expression.trim()
return
}

this.expression = expression.trim()
this.rawKey = rawKey

Expand Down
6 changes: 3 additions & 3 deletions dist/vue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.8.3",
"version": "0.8.4",
"author": {
"name": "Evan You",
"email": "[email protected]",
Expand Down

0 comments on commit c71c6a4

Please sign in to comment.