2
0
Evan You 11 жил өмнө
parent
commit
fe35b5101f
5 өөрчлөгдсөн 24 нэмэгдсэн , 12 устгасан
  1. 1 1
      bower.json
  2. 1 1
      component.json
  3. 20 8
      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.11.2",
+  "version": "0.11.3",
   "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.11.2",
+  "version": "0.11.3",
   "main": "src/vue.js",
   "author": "Evan You <yyx990803@gmail.com>",
   "description": "Simple, Fast & Composable MVVM for building interative interfaces",

+ 20 - 8
dist/vue.js

@@ -1,5 +1,5 @@
 /**
- * Vue.js v0.11.2
+ * Vue.js v0.11.3
  * (c) 2014 Evan You
  * Released under the MIT License.
  */
@@ -1628,6 +1628,7 @@ return /******/ (function(modules) { // webpackBootstrap
 
 	exports._compile = function (el) {
 	  var options = this.$options
+	  var parent = options._parent
 	  if (options._linkFn) {
 	    this._initElement(el)
 	    options._linkFn(this, el)
@@ -1637,20 +1638,26 @@ return /******/ (function(modules) { // webpackBootstrap
 	      // separate container element and content
 	      var content = options._content = _.extractContent(raw)
 	      // create two separate linekrs for container and content
+	      var parentOptions = parent.$options
+	      
+	      // hack: we need to skip the paramAttributes for this
+	      // child instance when compiling its parent container
+	      // linker. there could be a better way to do this.
+	      parentOptions._skipAttrs = options.paramAttributes
 	      var containerLinkFn =
-	        compile(raw, options, true, true)
+	        compile(raw, parentOptions, true, true)
+	      parentOptions._skipAttrs = null
+
 	      if (content) {
 	        var contentLinkFn =
-	          compile(content, options, true, true)
+	          compile(content, parentOptions, true)
 	        // call content linker now, before transclusion
-	        this._contentUnlinkFn =
-	          contentLinkFn(options._parent, content)
+	        this._contentUnlinkFn = contentLinkFn(parent, content)
 	      }
 	      // tranclude, this possibly replaces original
 	      el = transclude(el, options)
 	      // now call the container linker on the resolved el
-	      this._containerUnlinkFn =
-	        containerLinkFn(options._parent, el)
+	      this._containerUnlinkFn = containerLinkFn(parent, el)
 	    } else {
 	      // simply transclude
 	      el = transclude(el, options)
@@ -4612,7 +4619,8 @@ return /******/ (function(modules) { // webpackBootstrap
 	 * @param {Element|DocumentFragment} el
 	 * @param {Object} options
 	 * @param {Boolean} partial
-	 * @param {Boolean} asParent
+	 * @param {Boolean} asParent - compiling a component
+	 *                             container as its parent.
 	 * @return {Function}
 	 */
 
@@ -5102,6 +5110,10 @@ return /******/ (function(modules) { // webpackBootstrap
 	 */
 
 	function collectAttrDirective (el, name, value, options) {
+	  if (options._skipAttrs &&
+	      options._skipAttrs.indexOf(name) > -1) {
+	    return
+	  }
 	  var tokens = textParser.parse(value)
 	  if (tokens) {
 	    var def = options.directives.attr

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 1 - 1
dist/vue.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vue",
-  "version": "0.11.2",
+  "version": "0.11.3",
   "author": "Evan You <yyx990803@gmail.com>",
   "license": "MIT",
   "description": "Simple, Fast & Composable MVVM for building interative interfaces",

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно