Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b07cbb9

Browse filesBrowse files
committed
[release] 1.0.1
1 parent 18c8629 commit b07cbb9
Copy full SHA for b07cbb9

File tree

4 files changed

+28
-60
lines changed
Filter options

4 files changed

+28
-60
lines changed

‎dist/vue.js

Copy file name to clipboardExpand all lines: dist/vue.js
+22-54Lines changed: 22 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v1.0.0
2+
* Vue.js v1.0.1
33
* (c) 2015 Evan You
44
* Released under the MIT License.
55
*/
@@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
146146
extend(p, __webpack_require__(65))
147147
extend(p, __webpack_require__(66))
148148

149-
Vue.version = '1.0.0'
149+
Vue.version = '1.0.1'
150150
module.exports = _.Vue = Vue
151151

152152
/* istanbul ignore if */
@@ -202,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap
202202
return
203203
}
204204
ob.convert(key, val)
205-
ob.notify()
205+
ob.dep.notify()
206206
if (ob.vms) {
207207
var i = ob.vms.length
208208
while (i--) {
@@ -229,7 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
229229
if (!ob) {
230230
return
231231
}
232-
ob.notify()
232+
ob.dep.notify()
233233
if (ob.vms) {
234234
var i = ob.vms.length
235235
while (i--) {
@@ -689,7 +689,7 @@ return /******/ (function(modules) { // webpackBootstrap
689689
* Check if a node is in the document.
690690
* Note: document.documentElement.contains should work here
691691
* but always returns false for comment nodes in phantomjs,
692-
* making unit tests difficult. This is fixed byy doing the
692+
* making unit tests difficult. This is fixed by doing the
693693
* contains() check on the node's parentNode instead of
694694
* the node itself.
695695
*
@@ -1931,10 +1931,12 @@ return /******/ (function(modules) { // webpackBootstrap
19311931
var asset
19321932
while (i--) {
19331933
asset = assets[i]
1934-
var id = asset.name || (asset.options && asset.options.name)
1934+
var id = typeof asset === 'function'
1935+
? ((asset.options && asset.options.name) || asset.id)
1936+
: (asset.name || asset.id)
19351937
if (!id) {
19361938
("development") !== 'production' && _.warn(
1937-
'Array-syntax assets must provide a "name" field.'
1939+
'Array-syntax assets must provide a "name" or "id" field.'
19381940
)
19391941
} else {
19401942
res[id] = asset
@@ -3611,9 +3613,10 @@ return /******/ (function(modules) { // webpackBootstrap
36113613
// update $key
36123614
if (key) {
36133615
frag.scope.$key = key
3614-
if (iterator) {
3615-
frag.scope[iterator] = key
3616-
}
3616+
}
3617+
// update interator
3618+
if (iterator) {
3619+
frag.scope[iterator] = key || i
36173620
}
36183621
// update data for track-by, object repeat &
36193622
// primitive values.
@@ -8829,42 +8832,7 @@ return /******/ (function(modules) { // webpackBootstrap
88298832
Observer.prototype.observeArray = function (items) {
88308833
var i = items.length
88318834
while (i--) {
8832-
var ob = Observer.create(items[i])
8833-
if (ob) {
8834-
(ob.parents || (ob.parents = [])).push(this)
8835-
}
8836-
}
8837-
}
8838-
8839-
/**
8840-
* Remove self from the parent list of removed objects.
8841-
*
8842-
* @param {Array} items
8843-
*/
8844-
8845-
Observer.prototype.unobserveArray = function (items) {
8846-
var i = items.length
8847-
while (i--) {
8848-
var ob = items[i] && items[i].__ob__
8849-
if (ob) {
8850-
ob.parents.$remove(this)
8851-
}
8852-
}
8853-
}
8854-
8855-
/**
8856-
* Notify self dependency, and also parent Array dependency
8857-
* if any.
8858-
*/
8859-
8860-
Observer.prototype.notify = function () {
8861-
this.dep.notify()
8862-
var parents = this.parents
8863-
if (parents) {
8864-
var i = parents.length
8865-
while (i--) {
8866-
parents[i].notify()
8867-
}
8835+
Observer.create(items[i])
88688836
}
88698837
}
88708838

@@ -8955,6 +8923,12 @@ return /******/ (function(modules) { // webpackBootstrap
89558923
if (childOb) {
89568924
childOb.dep.depend()
89578925
}
8926+
if (_.isArray(val)) {
8927+
for (var e, i = 0, l = val.length; i < l; i++) {
8928+
e = val[i]
8929+
e && e.__ob__ && e.__ob__.dep.depend()
8930+
}
8931+
}
89588932
}
89598933
return val
89608934
},
@@ -9007,7 +8981,7 @@ return /******/ (function(modules) { // webpackBootstrap
90078981
}
90088982
var result = original.apply(this, args)
90098983
var ob = this.__ob__
9010-
var inserted, removed
8984+
var inserted
90118985
switch (method) {
90128986
case 'push':
90138987
inserted = args
@@ -9017,17 +8991,11 @@ return /******/ (function(modules) { // webpackBootstrap
90178991
break
90188992
case 'splice':
90198993
inserted = args.slice(2)
9020-
removed = result
9021-
break
9022-
case 'pop':
9023-
case 'shift':
9024-
removed = [result]
90258994
break
90268995
}
90278996
if (inserted) ob.observeArray(inserted)
9028-
if (removed) ob.unobserveArray(removed)
90298997
// notify change
9030-
ob.notify()
8998+
ob.dep.notify()
90318999
return result
90329000
})
90339001
})

‎dist/vue.min.js

Copy file name to clipboardExpand all lines: dist/vue.min.js
+4-4Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "Evan You <yyx990803@gmail.com>",
55
"license": "MIT",
66
"description": "Simple, Fast & Composable MVVM for building interative interfaces",

‎src/vue.js

Copy file name to clipboardExpand all lines: src/vue.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extend(p, require('./api/dom'))
8585
extend(p, require('./api/events'))
8686
extend(p, require('./api/lifecycle'))
8787

88-
Vue.version = '1.0.0'
88+
Vue.version = '1.0.1'
8989
module.exports = _.Vue = Vue
9090

9191
/* istanbul ignore if */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.