1
1
/*!
2
- * Vue.js v1.0.0-beta.4
2
+ * Vue.js v1.0.0-rc.1
3
3
* (c) 2015 Evan You
4
4
* Released under the MIT License.
5
5
*/
@@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
146
146
extend ( p , __webpack_require__ ( 65 ) )
147
147
extend ( p , __webpack_require__ ( 66 ) )
148
148
149
- Vue . version = '1.0.0-beta.3 '
149
+ Vue . version = '1.0.0-rc.1 '
150
150
module . exports = _ . Vue = Vue
151
151
152
152
@@ -1615,6 +1615,7 @@ return /******/ (function(modules) { // webpackBootstrap
1615
1615
* Hooks and param attributes are merged as arrays.
1616
1616
*/
1617
1617
1618
+ strats . init =
1618
1619
strats . created =
1619
1620
strats . ready =
1620
1621
strats . attached =
@@ -1737,8 +1738,8 @@ return /******/ (function(modules) { // webpackBootstrap
1737
1738
}
1738
1739
def = components [ key ]
1739
1740
if ( _ . isPlainObject ( def ) ) {
1740
- def . id = def . id || key
1741
- components [ key ] = def . _Ctor || ( def . _Ctor = _ . Vue . extend ( def ) )
1741
+ def . name = def . name || key
1742
+ components [ key ] = _ . Vue . extend ( def )
1742
1743
}
1743
1744
}
1744
1745
}
@@ -1786,10 +1787,10 @@ return /******/ (function(modules) { // webpackBootstrap
1786
1787
var asset
1787
1788
while ( i -- ) {
1788
1789
asset = assets [ i ]
1789
- var id = asset . id || ( asset . options && asset . options . id )
1790
+ var id = asset . name || ( asset . options && asset . options . name )
1790
1791
if ( ! id ) {
1791
1792
( "development" ) !== 'production' && _ . warn (
1792
- 'Array-syntax assets must provide an id field.'
1793
+ 'Array-syntax assets must provide a "name" field.'
1793
1794
)
1794
1795
} else {
1795
1796
res [ id ] = asset
@@ -2113,6 +2114,10 @@ return /******/ (function(modules) { // webpackBootstrap
2113
2114
exports . extend = function ( extendOptions ) {
2114
2115
extendOptions = extendOptions || { }
2115
2116
var Super = this
2117
+ var isFirstExtend = Super . cid === 0
2118
+ if ( isFirstExtend && extendOptions . _Ctor ) {
2119
+ return extendOptions . _Ctor
2120
+ }
2116
2121
var name = extendOptions . name || Super . options . name
2117
2122
var Sub = createClass ( name || 'VueComponent' )
2118
2123
Sub . prototype = Object . create ( Super . prototype )
@@ -2134,6 +2139,10 @@ return /******/ (function(modules) { // webpackBootstrap
2134
2139
if ( name ) {
2135
2140
Sub . options . components [ name ] = Sub
2136
2141
}
2142
+ // cache constructor
2143
+ if ( isFirstExtend ) {
2144
+ extendOptions . _Ctor = Sub
2145
+ }
2137
2146
return Sub
2138
2147
}
2139
2148
@@ -4975,11 +4984,8 @@ return /******/ (function(modules) { // webpackBootstrap
4975
4984
'false-value' : '_falseValue'
4976
4985
}
4977
4986
4978
- // regex to test for globally allowed attributes.
4979
- // we only need to include ones that:
4980
- // - do not have a corresponding property, e.g. role, dropzone;
4981
- // - cannot be camelized into the corresponding property, .e.g class, accesskey, contenteditable;
4982
- var globalAllowedAttrRE = / ^ ( c l a s s | r o l e | a c c e s s k e y | c o n t e n t e d i t a b l e | c o n t e x t m e n u | d r o p z o n e | h i d d e n | t a b i n d e x ) $ | ^ d a t a - | ^ a r i a - /
4987
+ // check for attribtues that prohibit interpolations
4988
+ var disallowedInterpAttrRE = / ^ v - | ^ : | ^ @ | ^ ( i s | t r a n s i t i o n | t r a n s i t i o n - m o d e | d e b o u n c e | t r a c k - b y | s t a g g e r | e n t e r - s t a g g e r | l e a v e - s t a g g e r ) $ /
4983
4989
4984
4990
module . exports = {
4985
4991
@@ -4990,21 +4996,11 @@ return /******/ (function(modules) { // webpackBootstrap
4990
4996
// handle interpolation bindings
4991
4997
if ( this . descriptor . interp ) {
4992
4998
// only allow binding on native attributes
4993
- if ( ! (
4994
- // globally allowed attributes
4995
- globalAllowedAttrRE . test ( attr ) ||
4996
- // check if "for" is available on current element.
4997
- // the corresponding property is a special case.
4998
- ( attr === 'for' && 'htmlFor' in this . el ) ||
4999
- // other attributes: check if a camelized property
5000
- // is available on the element
5001
- _ . camelize ( attr ) in this . el
5002
- ) ) {
4999
+ if ( disallowedInterpAttrRE . test ( attr ) ) {
5003
5000
( "development" ) !== 'production' && _ . warn (
5004
5001
attr + '="' + this . descriptor . raw + '": ' +
5005
- 'attribute interpolation is allowed only ' +
5006
- 'in valid native attributes. "' + attr + '" ' +
5007
- 'is not a valid attribute on <' + this . el . tagName . toLowerCase ( ) + '>.'
5002
+ 'attribute interpolation is not allowed in Vue.js ' +
5003
+ 'directives and special attributes.'
5008
5004
)
5009
5005
this . el . removeAttribute ( attr )
5010
5006
this . invalid = true
@@ -7543,7 +7539,7 @@ return /******/ (function(modules) { // webpackBootstrap
7543
7539
7544
7540
var _ = __webpack_require__ ( 1 )
7545
7541
var templateParser = __webpack_require__ ( 18 )
7546
- var specialCharRE = / [ ^ a - z A - Z _ \- : \. ] /
7542
+ var specialCharRE = / [ ^ \w \- : \. ] /
7547
7543
7548
7544
/**
7549
7545
* Process an element or a DocumentFragment based on a
@@ -8223,6 +8219,9 @@ return /******/ (function(modules) { // webpackBootstrap
8223
8219
// it will be filled up in _initScope().
8224
8220
this . _data = { }
8225
8221
8222
+ // call init hook
8223
+ this . _callHook ( 'init' )
8224
+
8226
8225
// initialize data observation and scope inheritance.
8227
8226
this . _initState ( )
8228
8227
0 commit comments