vuejs 1.0.31.beta1 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vuejs/version.rb +1 -1
- data/vendor/assets/javascripts/vue2.js +45 -20
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fb17c28a2b5a3b6f2b885c3e2af74027a8a7455
|
4
|
+
data.tar.gz: f1199247c7c103f4747d1bf9eaf2c23554209767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d75e002debdd0e3af5ba963682793b78d3b47106c74de3bd34f81dd751ef7dc0568562de13edb919d44066371f426f99f8de0ba9fbb4042df0a71c1eda651c8
|
7
|
+
data.tar.gz: e360efdcbb5ca9dc2cc2fa22c3f62245f3f87d9233f1c33902c4e62a248f65ea4704f92a0e7c276642fed3ec38df663aa5c9617cd2f9841aff5f27676bcc2999
|
data/lib/vuejs/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vue.js v2.1.
|
2
|
+
* Vue.js v2.1.3
|
3
3
|
* (c) 2014-2016 Evan You
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -1413,8 +1413,6 @@ var util = Object.freeze({
|
|
1413
1413
|
|
1414
1414
|
/* not type checking this file because flow doesn't play well with Proxy */
|
1415
1415
|
|
1416
|
-
var hasProxy;
|
1417
|
-
var proxyHandlers;
|
1418
1416
|
var initProxy;
|
1419
1417
|
|
1420
1418
|
{
|
@@ -1425,29 +1423,47 @@ var initProxy;
|
|
1425
1423
|
'require' // for Webpack/Browserify
|
1426
1424
|
);
|
1427
1425
|
|
1428
|
-
|
1426
|
+
var warnNonPresent = function (target, key) {
|
1427
|
+
warn(
|
1428
|
+
"Property or method \"" + key + "\" is not defined on the instance but " +
|
1429
|
+
"referenced during render. Make sure to declare reactive data " +
|
1430
|
+
"properties in the data option.",
|
1431
|
+
target
|
1432
|
+
);
|
1433
|
+
};
|
1434
|
+
|
1435
|
+
var hasProxy =
|
1429
1436
|
typeof Proxy !== 'undefined' &&
|
1430
1437
|
Proxy.toString().match(/native code/);
|
1431
1438
|
|
1432
|
-
|
1439
|
+
var hasHandler = {
|
1433
1440
|
has: function has (target, key) {
|
1434
1441
|
var has = key in target;
|
1435
1442
|
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
|
1436
1443
|
if (!has && !isAllowed) {
|
1437
|
-
|
1438
|
-
"Property or method \"" + key + "\" is not defined on the instance but " +
|
1439
|
-
"referenced during render. Make sure to declare reactive data " +
|
1440
|
-
"properties in the data option.",
|
1441
|
-
target
|
1442
|
-
);
|
1444
|
+
warnNonPresent(target, key);
|
1443
1445
|
}
|
1444
1446
|
return has || !isAllowed
|
1445
1447
|
}
|
1446
1448
|
};
|
1447
1449
|
|
1450
|
+
var getHandler = {
|
1451
|
+
get: function get (target, key) {
|
1452
|
+
if (typeof key === 'string' && !(key in target)) {
|
1453
|
+
warnNonPresent(target, key);
|
1454
|
+
}
|
1455
|
+
return target[key]
|
1456
|
+
}
|
1457
|
+
};
|
1458
|
+
|
1448
1459
|
initProxy = function initProxy (vm) {
|
1449
1460
|
if (hasProxy) {
|
1450
|
-
|
1461
|
+
// determine which proxy handler to use
|
1462
|
+
var options = vm.$options;
|
1463
|
+
var handlers = options.render && options.render._withStripped
|
1464
|
+
? getHandler
|
1465
|
+
: hasHandler;
|
1466
|
+
vm._renderProxy = new Proxy(vm, handlers);
|
1451
1467
|
} else {
|
1452
1468
|
vm._renderProxy = vm;
|
1453
1469
|
}
|
@@ -2353,6 +2369,10 @@ function lifecycleMixin (Vue) {
|
|
2353
2369
|
var vm = this;
|
2354
2370
|
var hasChildren = !!(vm.$options._renderChildren || renderChildren);
|
2355
2371
|
vm.$options._parentVnode = parentVnode;
|
2372
|
+
vm.$vnode = parentVnode; // update vm's placeholder node without re-render
|
2373
|
+
if (vm._vnode) { // update child tree's parent
|
2374
|
+
vm._vnode.parent = parentVnode;
|
2375
|
+
}
|
2356
2376
|
vm.$options._renderChildren = renderChildren;
|
2357
2377
|
// update props
|
2358
2378
|
if (propsData && vm.$options.props) {
|
@@ -2826,7 +2846,7 @@ function initRender (vm) {
|
|
2826
2846
|
vm._staticTrees = null;
|
2827
2847
|
vm._renderContext = vm.$options._parentVnode && vm.$options._parentVnode.context;
|
2828
2848
|
vm.$slots = resolveSlots(vm.$options._renderChildren, vm._renderContext);
|
2829
|
-
vm.$scopedSlots =
|
2849
|
+
vm.$scopedSlots = {};
|
2830
2850
|
// bind the public createElement fn to this instance
|
2831
2851
|
// so that we get proper render context inside it.
|
2832
2852
|
vm.$createElement = bind$1(createElement, vm);
|
@@ -2854,7 +2874,7 @@ function renderMixin (Vue) {
|
|
2854
2874
|
}
|
2855
2875
|
}
|
2856
2876
|
|
2857
|
-
if (_parentVnode) {
|
2877
|
+
if (_parentVnode && _parentVnode.data.scopedSlots) {
|
2858
2878
|
vm.$scopedSlots = _parentVnode.data.scopedSlots;
|
2859
2879
|
}
|
2860
2880
|
|
@@ -3000,7 +3020,7 @@ function renderMixin (Vue) {
|
|
3000
3020
|
fallback,
|
3001
3021
|
props
|
3002
3022
|
) {
|
3003
|
-
var scopedSlotFn = this.$scopedSlots
|
3023
|
+
var scopedSlotFn = this.$scopedSlots[name];
|
3004
3024
|
if (scopedSlotFn) { // scoped slot
|
3005
3025
|
return scopedSlotFn(props || {}) || fallback
|
3006
3026
|
} else {
|
@@ -3495,7 +3515,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
|
3495
3515
|
get: isServerRendering
|
3496
3516
|
});
|
3497
3517
|
|
3498
|
-
Vue$3.version = '2.1.
|
3518
|
+
Vue$3.version = '2.1.3';
|
3499
3519
|
|
3500
3520
|
/* */
|
3501
3521
|
|
@@ -4201,6 +4221,7 @@ function createPatchFunction (backend) {
|
|
4201
4221
|
vnode.key === oldVnode.key &&
|
4202
4222
|
(vnode.isCloned || vnode.isOnce)) {
|
4203
4223
|
vnode.elm = oldVnode.elm;
|
4224
|
+
vnode.child = oldVnode.child;
|
4204
4225
|
return
|
4205
4226
|
}
|
4206
4227
|
var i;
|
@@ -4365,9 +4386,13 @@ function createPatchFunction (backend) {
|
|
4365
4386
|
createElm(vnode, insertedVnodeQueue);
|
4366
4387
|
|
4367
4388
|
// component root element replaced.
|
4368
|
-
// update parent placeholder node element
|
4389
|
+
// update parent placeholder node element, recursively
|
4369
4390
|
if (vnode.parent) {
|
4370
|
-
|
4391
|
+
var ancestor = vnode.parent;
|
4392
|
+
while (ancestor) {
|
4393
|
+
ancestor.elm = vnode.elm;
|
4394
|
+
ancestor = ancestor.parent;
|
4395
|
+
}
|
4371
4396
|
if (isPatchable(vnode)) {
|
4372
4397
|
for (var i = 0; i < cbs.create.length; ++i) {
|
4373
4398
|
cbs.create[i](emptyNode, vnode.parent);
|
@@ -5900,9 +5925,9 @@ var isSpecialTag = function (tag, isSFC, stack) {
|
|
5900
5925
|
if (isScriptOrStyle(tag)) {
|
5901
5926
|
return true
|
5902
5927
|
}
|
5903
|
-
if (isSFC) {
|
5928
|
+
if (isSFC && stack.length === 1) {
|
5904
5929
|
// top-level template that has no pre-processor
|
5905
|
-
if (tag === 'template' &&
|
5930
|
+
if (tag === 'template' && !stack[0].attrs.some(hasLang)) {
|
5906
5931
|
return false
|
5907
5932
|
} else {
|
5908
5933
|
return true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vuejs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.31
|
4
|
+
version: 1.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,9 +76,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
84
|
rubygems_version: 2.6.7
|