Skip to content

Commit

Permalink
build: build 2.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 19, 2017
1 parent aac7634 commit cc319bd
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 1,243 deletions.
47 changes: 2 additions & 45 deletions dist/vue.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.12
* Vue.js v2.5.13
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -3279,7 +3279,6 @@ function proxy (target, sourceKey, key) {

function initState (vm) {
vm._watchers = [];
vm._inlineComputed = null;
var opts = vm.$options;
if (opts.props) { initProps(vm, opts.props); }
if (opts.methods) { initMethods(vm, opts.methods); }
Expand Down Expand Up @@ -3916,32 +3915,6 @@ function bindObjectListeners (data, value) {

/* */

/**
* This runtime helper creates an inline computed property for component
* props that contain object or array literals. The caching ensures the same
* object/array is returned unless the value has indeed changed, thus avoiding
* the child component to always re-render when comparing props values.
*
* Installed to the instance as _a, requires special handling in parser that
* transforms the following
* <foo :bar="{ a: 1 }"/>
* to:
* <foo :bar="_a(0, function(){return { a: 1 }})"
*/
function createInlineComputed (id, getter) {
var vm = this;
var watchers = vm._inlineComputed || (vm._inlineComputed = {});
var cached$$1 = watchers[id];
if (cached$$1) {
return cached$$1.value
} else {
watchers[id] = new Watcher(vm, getter, noop, { sync: true });
return watchers[id].value
}
}

/* */

function installRenderHelpers (target) {
target._o = markOnce;
target._n = toNumber;
Expand All @@ -3958,7 +3931,6 @@ function installRenderHelpers (target) {
target._e = createEmptyVNode;
target._u = resolveScopedSlots;
target._g = bindObjectListeners;
target._a = createInlineComputed;
}

/* */
Expand Down Expand Up @@ -5041,7 +5013,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.5.12';
Vue$3.version = '2.5.13';

/* */

Expand Down Expand Up @@ -8972,20 +8944,16 @@ var argRE = /:(.*)$/;
var bindRE = /^:|^v-bind:/;
var modifierRE = /\.[^.]+/g;

var literalValueRE = /^(\{.*\}|\[.*\])$/;

var decodeHTMLCached = cached(he.decode);

// configurable state
var warn$2;
var literalPropId;
var delimiters;
var transforms;
var preTransforms;
var postTransforms;
var platformIsPreTag;
var platformMustUseProp;
var platformIsReservedTag;
var platformGetTagNamespace;


Expand Down Expand Up @@ -9013,11 +8981,9 @@ function parse (
options
) {
warn$2 = options.warn || baseWarn;
literalPropId = 0;

platformIsPreTag = options.isPreTag || no;
platformMustUseProp = options.mustUseProp || no;
platformIsReservedTag = options.isReservedTag || no;
platformGetTagNamespace = options.getTagNamespace || no;

transforms = pluckModuleFunction(options.modules, 'transformNode');
Expand Down Expand Up @@ -9486,15 +9452,6 @@ function processAttrs (el) {
);
}
}
// optimize literal values in component props by wrapping them
// in an inline watcher to avoid unnecessary re-renders
if (
!platformIsReservedTag(el.tag) &&
el.tag !== 'slot' &&
literalValueRE.test(value.trim())
) {
value = "_a(" + (literalPropId++) + ",function(){return " + value + "})";
}
if (isProp || (
!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
)) {
Expand Down
47 changes: 2 additions & 45 deletions dist/vue.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.12
* Vue.js v2.5.13
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -3277,7 +3277,6 @@ function proxy (target, sourceKey, key) {

function initState (vm) {
vm._watchers = [];
vm._inlineComputed = null;
var opts = vm.$options;
if (opts.props) { initProps(vm, opts.props); }
if (opts.methods) { initMethods(vm, opts.methods); }
Expand Down Expand Up @@ -3914,32 +3913,6 @@ function bindObjectListeners (data, value) {

/* */

/**
* This runtime helper creates an inline computed property for component
* props that contain object or array literals. The caching ensures the same
* object/array is returned unless the value has indeed changed, thus avoiding
* the child component to always re-render when comparing props values.
*
* Installed to the instance as _a, requires special handling in parser that
* transforms the following
* <foo :bar="{ a: 1 }"/>
* to:
* <foo :bar="_a(0, function(){return { a: 1 }})"
*/
function createInlineComputed (id, getter) {
var vm = this;
var watchers = vm._inlineComputed || (vm._inlineComputed = {});
var cached$$1 = watchers[id];
if (cached$$1) {
return cached$$1.value
} else {
watchers[id] = new Watcher(vm, getter, noop, { sync: true });
return watchers[id].value
}
}

/* */

function installRenderHelpers (target) {
target._o = markOnce;
target._n = toNumber;
Expand All @@ -3956,7 +3929,6 @@ function installRenderHelpers (target) {
target._e = createEmptyVNode;
target._u = resolveScopedSlots;
target._g = bindObjectListeners;
target._a = createInlineComputed;
}

/* */
Expand Down Expand Up @@ -5039,7 +5011,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.5.12';
Vue$3.version = '2.5.13';

/* */

Expand Down Expand Up @@ -8970,20 +8942,16 @@ var argRE = /:(.*)$/;
var bindRE = /^:|^v-bind:/;
var modifierRE = /\.[^.]+/g;

var literalValueRE = /^(\{.*\}|\[.*\])$/;

var decodeHTMLCached = cached(he.decode);

// configurable state
var warn$2;
var literalPropId;
var delimiters;
var transforms;
var preTransforms;
var postTransforms;
var platformIsPreTag;
var platformMustUseProp;
var platformIsReservedTag;
var platformGetTagNamespace;


Expand Down Expand Up @@ -9011,11 +8979,9 @@ function parse (
options
) {
warn$2 = options.warn || baseWarn;
literalPropId = 0;

platformIsPreTag = options.isPreTag || no;
platformMustUseProp = options.mustUseProp || no;
platformIsReservedTag = options.isReservedTag || no;
platformGetTagNamespace = options.getTagNamespace || no;

transforms = pluckModuleFunction(options.modules, 'transformNode');
Expand Down Expand Up @@ -9484,15 +9450,6 @@ function processAttrs (el) {
);
}
}
// optimize literal values in component props by wrapping them
// in an inline watcher to avoid unnecessary re-renders
if (
!platformIsReservedTag(el.tag) &&
el.tag !== 'slot' &&
literalValueRE.test(value.trim())
) {
value = "_a(" + (literalPropId++) + ",function(){return " + value + "})";
}
if (isProp || (
!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
)) {
Expand Down
47 changes: 2 additions & 45 deletions dist/vue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.12
* Vue.js v2.5.13
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -3275,7 +3275,6 @@ function proxy (target, sourceKey, key) {

function initState (vm) {
vm._watchers = [];
vm._inlineComputed = null;
var opts = vm.$options;
if (opts.props) { initProps(vm, opts.props); }
if (opts.methods) { initMethods(vm, opts.methods); }
Expand Down Expand Up @@ -3908,32 +3907,6 @@ function bindObjectListeners (data, value) {

/* */

/**
* This runtime helper creates an inline computed property for component
* props that contain object or array literals. The caching ensures the same
* object/array is returned unless the value has indeed changed, thus avoiding
* the child component to always re-render when comparing props values.
*
* Installed to the instance as _a, requires special handling in parser that
* transforms the following
* <foo :bar="{ a: 1 }"/>
* to:
* <foo :bar="_a(0, function(){return { a: 1 }})"
*/
function createInlineComputed (id, getter) {
var vm = this;
var watchers = vm._inlineComputed || (vm._inlineComputed = {});
var cached$$1 = watchers[id];
if (cached$$1) {
return cached$$1.value
} else {
watchers[id] = new Watcher(vm, getter, noop, { sync: true });
return watchers[id].value
}
}

/* */

function installRenderHelpers (target) {
target._o = markOnce;
target._n = toNumber;
Expand All @@ -3950,7 +3923,6 @@ function installRenderHelpers (target) {
target._e = createEmptyVNode;
target._u = resolveScopedSlots;
target._g = bindObjectListeners;
target._a = createInlineComputed;
}

/* */
Expand Down Expand Up @@ -5026,7 +4998,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.5.12';
Vue$3.version = '2.5.13';

/* */

Expand Down Expand Up @@ -8957,20 +8929,16 @@ var argRE = /:(.*)$/;
var bindRE = /^:|^v-bind:/;
var modifierRE = /\.[^.]+/g;

var literalValueRE = /^(\{.*\}|\[.*\])$/;

var decodeHTMLCached = cached(he.decode);

// configurable state
var warn$2;
var literalPropId;
var delimiters;
var transforms;
var preTransforms;
var postTransforms;
var platformIsPreTag;
var platformMustUseProp;
var platformIsReservedTag;
var platformGetTagNamespace;


Expand Down Expand Up @@ -8998,11 +8966,9 @@ function parse (
options
) {
warn$2 = options.warn || baseWarn;
literalPropId = 0;

platformIsPreTag = options.isPreTag || no;
platformMustUseProp = options.mustUseProp || no;
platformIsReservedTag = options.isReservedTag || no;
platformGetTagNamespace = options.getTagNamespace || no;

transforms = pluckModuleFunction(options.modules, 'transformNode');
Expand Down Expand Up @@ -9471,15 +9437,6 @@ function processAttrs (el) {
);
}
}
// optimize literal values in component props by wrapping them
// in an inline watcher to avoid unnecessary re-renders
if (
!platformIsReservedTag(el.tag) &&
el.tag !== 'slot' &&
literalValueRE.test(value.trim())
) {
value = "_a(" + (literalPropId++) + ",function(){return " + value + "})";
}
if (isProp || (
!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
)) {
Expand Down
4 changes: 2 additions & 2 deletions dist/vue.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit cc319bd

Please sign in to comment.