Skip to content

Commit 563b0b9

Browse files
committed
[release] 0.11.7
1 parent 88c38ce commit 563b0b9

File tree

5 files changed

+73
-70
lines changed

5 files changed

+73
-70
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.11.6",
3+
"version": "0.11.7",
44
"main": "dist/vue.js",
55
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
66
"authors": ["Evan You <yyx990803@gmail.com>"],

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.11.6",
3+
"version": "0.11.7",
44
"main": "src/vue.js",
55
"author": "Evan You <yyx990803@gmail.com>",
66
"description": "Simple, Fast & Composable MVVM for building interative interfaces",

dist/vue.js

Lines changed: 67 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Vue.js v0.11.6
2+
* Vue.js v0.11.7
33
* (c) 2015 Evan You
44
* Released under the MIT License.
55
*/
@@ -538,7 +538,7 @@ return /******/ (function(modules) { // webpackBootstrap
538538

539539
var _ = __webpack_require__(11)
540540
var Observer = __webpack_require__(49)
541-
var Dep = __webpack_require__(24)
541+
var Dep = __webpack_require__(23)
542542

543543
/**
544544
* Setup the scope of an instance, which contains:
@@ -756,7 +756,7 @@ return /******/ (function(modules) { // webpackBootstrap
756756
/***/ function(module, exports, __webpack_require__) {
757757

758758
var _ = __webpack_require__(11)
759-
var Directive = __webpack_require__(23)
759+
var Directive = __webpack_require__(24)
760760
var compile = __webpack_require__(16)
761761
var transclude = __webpack_require__(17)
762762

@@ -4093,6 +4093,64 @@ return /******/ (function(modules) { // webpackBootstrap
40934093

40944094
/***/ },
40954095
/* 23 */
4096+
/***/ function(module, exports, __webpack_require__) {
4097+
4098+
var uid = 0
4099+
var _ = __webpack_require__(11)
4100+
4101+
/**
4102+
* A dep is an observable that can have multiple
4103+
* directives subscribing to it.
4104+
*
4105+
* @constructor
4106+
*/
4107+
4108+
function Dep () {
4109+
this.id = ++uid
4110+
this.subs = []
4111+
}
4112+
4113+
var p = Dep.prototype
4114+
4115+
/**
4116+
* Add a directive subscriber.
4117+
*
4118+
* @param {Directive} sub
4119+
*/
4120+
4121+
p.addSub = function (sub) {
4122+
this.subs.push(sub)
4123+
}
4124+
4125+
/**
4126+
* Remove a directive subscriber.
4127+
*
4128+
* @param {Directive} sub
4129+
*/
4130+
4131+
p.removeSub = function (sub) {
4132+
if (this.subs.length) {
4133+
var i = this.subs.indexOf(sub)
4134+
if (i > -1) this.subs.splice(i, 1)
4135+
}
4136+
}
4137+
4138+
/**
4139+
* Notify all subscribers of a new value.
4140+
*/
4141+
4142+
p.notify = function () {
4143+
// stablize the subscriber list first
4144+
var subs = _.toArray(this.subs)
4145+
for (var i = 0, l = subs.length; i < l; i++) {
4146+
subs[i].update()
4147+
}
4148+
}
4149+
4150+
module.exports = Dep
4151+
4152+
/***/ },
4153+
/* 24 */
40964154
/***/ function(module, exports, __webpack_require__) {
40974155

40984156
var _ = __webpack_require__(11)
@@ -4318,64 +4376,6 @@ return /******/ (function(modules) { // webpackBootstrap
43184376

43194377
module.exports = Directive
43204378

4321-
/***/ },
4322-
/* 24 */
4323-
/***/ function(module, exports, __webpack_require__) {
4324-
4325-
var uid = 0
4326-
var _ = __webpack_require__(11)
4327-
4328-
/**
4329-
* A dep is an observable that can have multiple
4330-
* directives subscribing to it.
4331-
*
4332-
* @constructor
4333-
*/
4334-
4335-
function Dep () {
4336-
this.id = ++uid
4337-
this.subs = []
4338-
}
4339-
4340-
var p = Dep.prototype
4341-
4342-
/**
4343-
* Add a directive subscriber.
4344-
*
4345-
* @param {Directive} sub
4346-
*/
4347-
4348-
p.addSub = function (sub) {
4349-
this.subs.push(sub)
4350-
}
4351-
4352-
/**
4353-
* Remove a directive subscriber.
4354-
*
4355-
* @param {Directive} sub
4356-
*/
4357-
4358-
p.removeSub = function (sub) {
4359-
if (this.subs.length) {
4360-
var i = this.subs.indexOf(sub)
4361-
if (i > -1) this.subs.splice(i, 1)
4362-
}
4363-
}
4364-
4365-
/**
4366-
* Notify all subscribers of a new value.
4367-
*/
4368-
4369-
p.notify = function () {
4370-
// stablize the subscriber list first
4371-
var subs = _.toArray(this.subs)
4372-
for (var i = 0, l = subs.length; i < l; i++) {
4373-
subs[i].update()
4374-
}
4375-
}
4376-
4377-
module.exports = Dep
4378-
43794379
/***/ },
43804380
/* 25 */
43814381
/***/ function(module, exports, __webpack_require__) {
@@ -6321,17 +6321,20 @@ return /******/ (function(modules) { // webpackBootstrap
63216321
vm.$before(ref)
63226322
}
63236323
} else {
6324+
// make sure to insert before the comment node if
6325+
// the vms are block instances
6326+
var nextEl = targetNext._blockStart || targetNext.$el
63246327
if (vm._reused) {
63256328
// this is the vm we are actually in front of
63266329
currentNext = findNextVm(vm, ref)
63276330
// we only need to move if we are not in the right
63286331
// place already.
63296332
if (currentNext !== targetNext) {
6330-
vm.$before(targetNext.$el, null, false)
6333+
vm.$before(nextEl, null, false)
63316334
}
63326335
} else {
63336336
// new instance, insert to existing next
6334-
vm.$before(targetNext.$el)
6337+
vm.$before(nextEl)
63356338
}
63366339
}
63376340
vm._new = false
@@ -6982,7 +6985,7 @@ return /******/ (function(modules) { // webpackBootstrap
69826985

69836986
var _ = __webpack_require__(11)
69846987
var config = __webpack_require__(15)
6985-
var Dep = __webpack_require__(24)
6988+
var Dep = __webpack_require__(23)
69866989
var arrayMethods = __webpack_require__(54)
69876990
var arrayKeys = Object.getOwnPropertyNames(arrayMethods)
69886991
__webpack_require__(55)

dist/vue.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

0 commit comments

Comments
 (0)