|
1 | 1 | /*!
|
2 |
| - * Vue.js v1.0.0-rc.2 |
| 2 | + * Vue.js v1.0.0 |
3 | 3 | * (c) 2015 Evan You
|
4 | 4 | * Released under the MIT License.
|
5 | 5 | */
|
@@ -146,9 +146,16 @@ 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-rc.2' |
| 149 | + Vue.version = '1.0.0' |
150 | 150 | module.exports = _.Vue = Vue
|
151 | 151 |
|
| 152 | + /* istanbul ignore if */ |
| 153 | + if (true) { |
| 154 | + if (_.inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) { |
| 155 | + window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit('init', Vue) |
| 156 | + } |
| 157 | + } |
| 158 | + |
152 | 159 |
|
153 | 160 | /***/ },
|
154 | 161 | /* 1 */
|
@@ -1875,7 +1882,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
1875 | 1882 | }
|
1876 | 1883 | def = components[key]
|
1877 | 1884 | if (_.isPlainObject(def)) {
|
1878 |
| - def.name = def.name || key |
1879 | 1885 | components[key] = _.Vue.extend(def)
|
1880 | 1886 | }
|
1881 | 1887 | }
|
@@ -5037,7 +5043,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
5037 | 5043 | 'false-value': '_falseValue'
|
5038 | 5044 | }
|
5039 | 5045 |
|
5040 |
| - // check for attribtues that prohibit interpolations |
| 5046 | + // check for attributes that prohibit interpolations |
5041 | 5047 | var disallowedInterpAttrRE = /^v-|^:|^@|^(is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/
|
5042 | 5048 |
|
5043 | 5049 | module.exports = {
|
@@ -5077,8 +5083,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
5077 | 5083 | // warn style
|
5078 | 5084 | if (attr === 'style') {
|
5079 | 5085 | _.warn(
|
5080 |
| - raw + 'interpolation in "style" attribtue will cause ' + |
5081 |
| - 'the attribtue to be discarded in Internet Explorer. ' + |
| 5086 | + raw + 'interpolation in "style" attribute will cause ' + |
| 5087 | + 'the attribute to be discarded in Internet Explorer. ' + |
5082 | 5088 | 'Use v-bind:style instead.'
|
5083 | 5089 | )
|
5084 | 5090 | }
|
@@ -5500,6 +5506,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
5500 | 5506 | resolveComponent: function (id, cb) {
|
5501 | 5507 | var self = this
|
5502 | 5508 | this.pendingComponentCb = _.cancellable(function (Component) {
|
| 5509 | + self.ComponentName = id |
5503 | 5510 | self.Component = Component
|
5504 | 5511 | cb()
|
5505 | 5512 | })
|
@@ -5563,6 +5570,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
5563 | 5570 | if (this.Component) {
|
5564 | 5571 | // default options
|
5565 | 5572 | var options = {
|
| 5573 | + name: this.ComponentName, |
5566 | 5574 | el: templateParser.clone(this.el),
|
5567 | 5575 | template: this.inlineTemplate,
|
5568 | 5576 | // make sure to add the child with correct parent
|
@@ -5686,6 +5694,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
5686 | 5694 | transition: function (target, cb) {
|
5687 | 5695 | var self = this
|
5688 | 5696 | var current = this.childVM
|
| 5697 | + // for devtool inspection |
| 5698 | + if (true) { |
| 5699 | + if (current) current._inactive = true |
| 5700 | + target._inactive = false |
| 5701 | + } |
5689 | 5702 | this.childVM = target
|
5690 | 5703 | switch (self.params.transitionMode) {
|
5691 | 5704 | case 'in-out':
|
@@ -6884,6 +6897,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
6884 | 6897 | runBatcherQueue(queue)
|
6885 | 6898 | internalQueueDepleted = true
|
6886 | 6899 | runBatcherQueue(userQueue)
|
| 6900 | + // dev tool hook |
| 6901 | + /* istanbul ignore if */ |
| 6902 | + if (true) { |
| 6903 | + if (_.inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) { |
| 6904 | + window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit('flush') |
| 6905 | + } |
| 6906 | + } |
6887 | 6907 | resetBatcherState()
|
6888 | 6908 | }
|
6889 | 6909 |
|
@@ -8181,6 +8201,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
8181 | 8201 | /***/ function(module, exports, __webpack_require__) {
|
8182 | 8202 |
|
8183 | 8203 | var mergeOptions = __webpack_require__(1).mergeOptions
|
| 8204 | + var uid = 0 |
8184 | 8205 |
|
8185 | 8206 | /**
|
8186 | 8207 | * The main init sequence. This is called for every
|
@@ -8208,6 +8229,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
8208 | 8229 | this._watchers = [] // all watchers as an array
|
8209 | 8230 | this._directives = [] // all directives
|
8210 | 8231 |
|
| 8232 | + // a uid |
| 8233 | + this._uid = uid++ |
| 8234 | + |
8211 | 8235 | // a flag to avoid this being observed
|
8212 | 8236 | this._isVue = true
|
8213 | 8237 |
|
@@ -9324,6 +9348,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
9324 | 9348 | this._host = host
|
9325 | 9349 | this._scope = scope
|
9326 | 9350 | this._frag = frag
|
| 9351 | + // store directives on node in dev mode |
| 9352 | + if (("development") !== 'production' && this.el) { |
| 9353 | + this.el._vue_directives = this.el._vue_directives || [] |
| 9354 | + this.el._vue_directives.push(this) |
| 9355 | + } |
9327 | 9356 | }
|
9328 | 9357 |
|
9329 | 9358 | /**
|
@@ -9583,6 +9612,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
9583 | 9612 | unwatchFns[i]()
|
9584 | 9613 | }
|
9585 | 9614 | }
|
| 9615 | + if (("development") !== 'production' && this.el) { |
| 9616 | + this.el._vue_directives.$remove(this) |
| 9617 | + } |
9586 | 9618 | this.vm = this.el = this._watcher = this._listeners = null
|
9587 | 9619 | }
|
9588 | 9620 | }
|
|
0 commit comments