Skip to content

Commit

Permalink
[release] 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 27, 2015
1 parent 18c8629 commit b07cbb9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 60 deletions.
76 changes: 22 additions & 54 deletions dist/vue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v1.0.0
* Vue.js v1.0.1
* (c) 2015 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
extend(p, __webpack_require__(65))
extend(p, __webpack_require__(66))

Vue.version = '1.0.0'
Vue.version = '1.0.1'
module.exports = _.Vue = Vue

/* istanbul ignore if */
Expand Down Expand Up @@ -202,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap
return
}
ob.convert(key, val)
ob.notify()
ob.dep.notify()
if (ob.vms) {
var i = ob.vms.length
while (i--) {
Expand All @@ -229,7 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (!ob) {
return
}
ob.notify()
ob.dep.notify()
if (ob.vms) {
var i = ob.vms.length
while (i--) {
Expand Down Expand Up @@ -689,7 +689,7 @@ return /******/ (function(modules) { // webpackBootstrap
* Check if a node is in the document.
* Note: document.documentElement.contains should work here
* but always returns false for comment nodes in phantomjs,
* making unit tests difficult. This is fixed byy doing the
* making unit tests difficult. This is fixed by doing the
* contains() check on the node's parentNode instead of
* the node itself.
*
Expand Down Expand Up @@ -1931,10 +1931,12 @@ return /******/ (function(modules) { // webpackBootstrap
var asset
while (i--) {
asset = assets[i]
var id = asset.name || (asset.options && asset.options.name)
var id = typeof asset === 'function'
? ((asset.options && asset.options.name) || asset.id)
: (asset.name || asset.id)
if (!id) {
("development") !== 'production' && _.warn(
'Array-syntax assets must provide a "name" field.'
'Array-syntax assets must provide a "name" or "id" field.'
)
} else {
res[id] = asset
Expand Down Expand Up @@ -3611,9 +3613,10 @@ return /******/ (function(modules) { // webpackBootstrap
// update $key
if (key) {
frag.scope.$key = key
if (iterator) {
frag.scope[iterator] = key
}
}
// update interator
if (iterator) {
frag.scope[iterator] = key || i
}
// update data for track-by, object repeat &
// primitive values.
Expand Down Expand Up @@ -8829,42 +8832,7 @@ return /******/ (function(modules) { // webpackBootstrap
Observer.prototype.observeArray = function (items) {
var i = items.length
while (i--) {
var ob = Observer.create(items[i])
if (ob) {
(ob.parents || (ob.parents = [])).push(this)
}
}
}

/**
* Remove self from the parent list of removed objects.
*
* @param {Array} items
*/

Observer.prototype.unobserveArray = function (items) {
var i = items.length
while (i--) {
var ob = items[i] && items[i].__ob__
if (ob) {
ob.parents.$remove(this)
}
}
}

/**
* Notify self dependency, and also parent Array dependency
* if any.
*/

Observer.prototype.notify = function () {
this.dep.notify()
var parents = this.parents
if (parents) {
var i = parents.length
while (i--) {
parents[i].notify()
}
Observer.create(items[i])
}
}

Expand Down Expand Up @@ -8955,6 +8923,12 @@ return /******/ (function(modules) { // webpackBootstrap
if (childOb) {
childOb.dep.depend()
}
if (_.isArray(val)) {
for (var e, i = 0, l = val.length; i < l; i++) {
e = val[i]
e && e.__ob__ && e.__ob__.dep.depend()
}
}
}
return val
},
Expand Down Expand Up @@ -9007,7 +8981,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
var result = original.apply(this, args)
var ob = this.__ob__
var inserted, removed
var inserted
switch (method) {
case 'push':
inserted = args
Expand All @@ -9017,17 +8991,11 @@ return /******/ (function(modules) { // webpackBootstrap
break
case 'splice':
inserted = args.slice(2)
removed = result
break
case 'pop':
case 'shift':
removed = [result]
break
}
if (inserted) ob.observeArray(inserted)
if (removed) ob.unobserveArray(removed)
// notify change
ob.notify()
ob.dep.notify()
return result
})
})
Expand Down
8 changes: 4 additions & 4 deletions dist/vue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "1.0.0",
"version": "1.0.1",
"author": "Evan You <[email protected]>",
"license": "MIT",
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
Expand Down
2 changes: 1 addition & 1 deletion src/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ extend(p, require('./api/dom'))
extend(p, require('./api/events'))
extend(p, require('./api/lifecycle'))

Vue.version = '1.0.0'
Vue.version = '1.0.1'
module.exports = _.Vue = Vue

/* istanbul ignore if */
Expand Down

0 comments on commit b07cbb9

Please sign in to comment.