Skip to content

Commit 7864dd4

Browse files
committed
[build] 1.0.23
1 parent 1b82ff3 commit 7864dd4

File tree

4 files changed

+79
-39
lines changed

4 files changed

+79
-39
lines changed

dist/vue.common.js

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v1.0.22
2+
* Vue.js v1.0.23
33
* (c) 2016 Evan You
44
* Released under the MIT License.
55
*/
@@ -1135,10 +1135,22 @@ function query(el) {
11351135
* @return {Boolean}
11361136
*/
11371137

1138-
function inDoc(node) {
1139-
var doc = document.documentElement;
1138+
function inDoc(node, win) {
1139+
win = win || window;
1140+
var doc = win.document.documentElement;
11401141
var parent = node && node.parentNode;
1141-
return doc === node || doc === parent || !!(parent && parent.nodeType === 1 && doc.contains(parent));
1142+
var isInDoc = doc === node || doc === parent || !!(parent && parent.nodeType === 1 && doc.contains(parent));
1143+
if (!isInDoc) {
1144+
var frames = win.frames;
1145+
if (frames) {
1146+
for (var i = 0; i < frames.length; i++) {
1147+
if (inDoc(node, frames[i])) {
1148+
return true;
1149+
}
1150+
}
1151+
}
1152+
}
1153+
return isInDoc;
11421154
}
11431155

11441156
/**
@@ -3011,19 +3023,26 @@ function resetBatcherState() {
30113023
*/
30123024

30133025
function flushBatcherQueue() {
3014-
runBatcherQueue(queue);
3015-
queue.length = 0;
3016-
runBatcherQueue(userQueue);
3017-
// user watchers triggered more internal watchers
3018-
if (queue.length) {
3026+
var _again = true;
3027+
3028+
_function: while (_again) {
3029+
_again = false;
3030+
30193031
runBatcherQueue(queue);
3032+
runBatcherQueue(userQueue);
3033+
// user watchers triggered more watchers,
3034+
// keep flushing until it depletes
3035+
if (queue.length) {
3036+
_again = true;
3037+
continue _function;
3038+
}
3039+
// dev tool hook
3040+
/* istanbul ignore if */
3041+
if (devtools && config.devtools) {
3042+
devtools.emit('flush');
3043+
}
3044+
resetBatcherState();
30203045
}
3021-
// dev tool hook
3022-
/* istanbul ignore if */
3023-
if (devtools && config.devtools) {
3024-
devtools.emit('flush');
3025-
}
3026-
resetBatcherState();
30273046
}
30283047

30293048
/**
@@ -3049,6 +3068,7 @@ function runBatcherQueue(queue) {
30493068
}
30503069
}
30513070
}
3071+
queue.length = 0;
30523072
}
30533073

30543074
/**
@@ -7768,7 +7788,7 @@ function extractFragment(nodes, parent) {
77687788
var node = nodes[i];
77697789
if (isTemplate(node) && !node.hasAttribute('v-if') && !node.hasAttribute('v-for')) {
77707790
parent.removeChild(node);
7771-
node = parseTemplate(node);
7791+
node = parseTemplate(node, true);
77727792
}
77737793
frag.appendChild(node);
77747794
}
@@ -10004,7 +10024,7 @@ function installGlobalAPI (Vue) {
1000410024

1000510025
installGlobalAPI(Vue);
1000610026

10007-
Vue.version = '1.0.22';
10027+
Vue.version = '1.0.23';
1000810028

1000910029
// devtools global hook
1001010030
/* istanbul ignore next */

dist/vue.js

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v1.0.22
2+
* Vue.js v1.0.23
33
* (c) 2016 Evan You
44
* Released under the MIT License.
55
*/
@@ -1139,10 +1139,22 @@ var transition = Object.freeze({
11391139
* @return {Boolean}
11401140
*/
11411141

1142-
function inDoc(node) {
1143-
var doc = document.documentElement;
1142+
function inDoc(node, win) {
1143+
win = win || window;
1144+
var doc = win.document.documentElement;
11441145
var parent = node && node.parentNode;
1145-
return doc === node || doc === parent || !!(parent && parent.nodeType === 1 && doc.contains(parent));
1146+
var isInDoc = doc === node || doc === parent || !!(parent && parent.nodeType === 1 && doc.contains(parent));
1147+
if (!isInDoc) {
1148+
var frames = win.frames;
1149+
if (frames) {
1150+
for (var i = 0; i < frames.length; i++) {
1151+
if (inDoc(node, frames[i])) {
1152+
return true;
1153+
}
1154+
}
1155+
}
1156+
}
1157+
return isInDoc;
11461158
}
11471159

11481160
/**
@@ -3015,19 +3027,26 @@ var expression = Object.freeze({
30153027
*/
30163028

30173029
function flushBatcherQueue() {
3018-
runBatcherQueue(queue);
3019-
queue.length = 0;
3020-
runBatcherQueue(userQueue);
3021-
// user watchers triggered more internal watchers
3022-
if (queue.length) {
3030+
var _again = true;
3031+
3032+
_function: while (_again) {
3033+
_again = false;
3034+
30233035
runBatcherQueue(queue);
3036+
runBatcherQueue(userQueue);
3037+
// user watchers triggered more watchers,
3038+
// keep flushing until it depletes
3039+
if (queue.length) {
3040+
_again = true;
3041+
continue _function;
3042+
}
3043+
// dev tool hook
3044+
/* istanbul ignore if */
3045+
if (devtools && config.devtools) {
3046+
devtools.emit('flush');
3047+
}
3048+
resetBatcherState();
30243049
}
3025-
// dev tool hook
3026-
/* istanbul ignore if */
3027-
if (devtools && config.devtools) {
3028-
devtools.emit('flush');
3029-
}
3030-
resetBatcherState();
30313050
}
30323051

30333052
/**
@@ -3053,6 +3072,7 @@ var expression = Object.freeze({
30533072
}
30543073
}
30553074
}
3075+
queue.length = 0;
30563076
}
30573077

30583078
/**
@@ -7765,7 +7785,7 @@ var template = Object.freeze({
77657785
var node = nodes[i];
77667786
if (isTemplate(node) && !node.hasAttribute('v-if') && !node.hasAttribute('v-for')) {
77677787
parent.removeChild(node);
7768-
node = parseTemplate(node);
7788+
node = parseTemplate(node, true);
77697789
}
77707790
frag.appendChild(node);
77717791
}
@@ -10001,7 +10021,7 @@ var template = Object.freeze({
1000110021

1000210022
installGlobalAPI(Vue);
1000310023

10004-
Vue.version = '1.0.22';
10024+
Vue.version = '1.0.23';
1000510025

1000610026
// devtools global hook
1000710027
/* istanbul ignore next */

dist/vue.min.js

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

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import config from './config'
55

66
installGlobalAPI(Vue)
77

8-
Vue.version = '1.0.22'
8+
Vue.version = '1.0.23'
99

1010
export default Vue
1111

0 commit comments

Comments
 (0)