Bladeren bron

Release-v0.8.4

Evan You 12 jaren geleden
bovenliggende
commit
c71c6a4dde
5 gewijzigde bestanden met toevoegingen van 15 en 8 verwijderingen
  1. 1 1
      bower.json
  2. 1 1
      component.json
  3. 11 4
      dist/vue.js
  4. 1 1
      dist/vue.min.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -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 <yyx990803@gmail.com>"],

+ 1 - 1
component.json

@@ -1,6 +1,6 @@
 {
     "name": "vue",
-    "version": "0.8.3",
+    "version": "0.8.4",
     "main": "src/main.js",
     "author": "Evan You <yyx990803@gmail.com>",
     "description": "Simple, Fast & Composable MVVM for building interative interfaces",

+ 11 - 4
dist/vue.js

@@ -1,5 +1,5 @@
 /*
- Vue.js v0.8.3
+ Vue.js v0.8.4
  (c) 2014 Evan You
  License: MIT
 */
@@ -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) {
@@ -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
     }
@@ -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
     

File diff suppressed because it is too large
+ 1 - 1
dist/vue.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vue",
-  "version": "0.8.3",
+  "version": "0.8.4",
   "author": {
     "name": "Evan You",
     "email": "yyx990803@gmail.com",

Some files were not shown because too many files changed in this diff