|
|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
|
- * Vue.js v1.0.0-beta.4
|
|
|
+ * Vue.js v1.0.0-rc.1
|
|
|
* (c) 2015 Evan You
|
|
|
* Released under the MIT License.
|
|
|
*/
|
|
|
@@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
extend(p, __webpack_require__(65))
|
|
|
extend(p, __webpack_require__(66))
|
|
|
|
|
|
- Vue.version = '1.0.0-beta.3'
|
|
|
+ Vue.version = '1.0.0-rc.1'
|
|
|
module.exports = _.Vue = Vue
|
|
|
|
|
|
|
|
|
@@ -1615,6 +1615,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
* Hooks and param attributes are merged as arrays.
|
|
|
*/
|
|
|
|
|
|
+ strats.init =
|
|
|
strats.created =
|
|
|
strats.ready =
|
|
|
strats.attached =
|
|
|
@@ -1737,8 +1738,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
}
|
|
|
def = components[key]
|
|
|
if (_.isPlainObject(def)) {
|
|
|
- def.id = def.id || key
|
|
|
- components[key] = def._Ctor || (def._Ctor = _.Vue.extend(def))
|
|
|
+ def.name = def.name || key
|
|
|
+ components[key] = _.Vue.extend(def)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1786,10 +1787,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
var asset
|
|
|
while (i--) {
|
|
|
asset = assets[i]
|
|
|
- var id = asset.id || (asset.options && asset.options.id)
|
|
|
+ var id = asset.name || (asset.options && asset.options.name)
|
|
|
if (!id) {
|
|
|
("development") !== 'production' && _.warn(
|
|
|
- 'Array-syntax assets must provide an id field.'
|
|
|
+ 'Array-syntax assets must provide a "name" field.'
|
|
|
)
|
|
|
} else {
|
|
|
res[id] = asset
|
|
|
@@ -2113,6 +2114,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
exports.extend = function (extendOptions) {
|
|
|
extendOptions = extendOptions || {}
|
|
|
var Super = this
|
|
|
+ var isFirstExtend = Super.cid === 0
|
|
|
+ if (isFirstExtend && extendOptions._Ctor) {
|
|
|
+ return extendOptions._Ctor
|
|
|
+ }
|
|
|
var name = extendOptions.name || Super.options.name
|
|
|
var Sub = createClass(name || 'VueComponent')
|
|
|
Sub.prototype = Object.create(Super.prototype)
|
|
|
@@ -2134,6 +2139,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
if (name) {
|
|
|
Sub.options.components[name] = Sub
|
|
|
}
|
|
|
+ // cache constructor
|
|
|
+ if (isFirstExtend) {
|
|
|
+ extendOptions._Ctor = Sub
|
|
|
+ }
|
|
|
return Sub
|
|
|
}
|
|
|
|
|
|
@@ -4975,11 +4984,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
'false-value': '_falseValue'
|
|
|
}
|
|
|
|
|
|
- // regex to test for globally allowed attributes.
|
|
|
- // we only need to include ones that:
|
|
|
- // - do not have a corresponding property, e.g. role, dropzone;
|
|
|
- // - cannot be camelized into the corresponding property, .e.g class, accesskey, contenteditable;
|
|
|
- var globalAllowedAttrRE = /^(class|role|accesskey|contenteditable|contextmenu|dropzone|hidden|tabindex)$|^data-|^aria-/
|
|
|
+ // check for attribtues that prohibit interpolations
|
|
|
+ var disallowedInterpAttrRE = /^v-|^:|^@|^(is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
|
@@ -4990,21 +4996,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
// handle interpolation bindings
|
|
|
if (this.descriptor.interp) {
|
|
|
// only allow binding on native attributes
|
|
|
- if (!(
|
|
|
- // globally allowed attributes
|
|
|
- globalAllowedAttrRE.test(attr) ||
|
|
|
- // check if "for" is available on current element.
|
|
|
- // the corresponding property is a special case.
|
|
|
- (attr === 'for' && 'htmlFor' in this.el) ||
|
|
|
- // other attributes: check if a camelized property
|
|
|
- // is available on the element
|
|
|
- _.camelize(attr) in this.el
|
|
|
- )) {
|
|
|
+ if (disallowedInterpAttrRE.test(attr)) {
|
|
|
("development") !== 'production' && _.warn(
|
|
|
attr + '="' + this.descriptor.raw + '": ' +
|
|
|
- 'attribute interpolation is allowed only ' +
|
|
|
- 'in valid native attributes. "' + attr + '" ' +
|
|
|
- 'is not a valid attribute on <' + this.el.tagName.toLowerCase() + '>.'
|
|
|
+ 'attribute interpolation is not allowed in Vue.js ' +
|
|
|
+ 'directives and special attributes.'
|
|
|
)
|
|
|
this.el.removeAttribute(attr)
|
|
|
this.invalid = true
|
|
|
@@ -7543,7 +7539,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
|
|
var _ = __webpack_require__(1)
|
|
|
var templateParser = __webpack_require__(18)
|
|
|
- var specialCharRE = /[^a-zA-Z_\-:\.]/
|
|
|
+ var specialCharRE = /[^\w\-:\.]/
|
|
|
|
|
|
/**
|
|
|
* Process an element or a DocumentFragment based on a
|
|
|
@@ -8223,6 +8219,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
// it will be filled up in _initScope().
|
|
|
this._data = {}
|
|
|
|
|
|
+ // call init hook
|
|
|
+ this._callHook('init')
|
|
|
+
|
|
|
// initialize data observation and scope inheritance.
|
|
|
this._initState()
|
|
|
|