Skip to content

Commit

Permalink
[build] 5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Jun 30, 2017
1 parent 176c310 commit 27fa55b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
17 changes: 11 additions & 6 deletions dist/vue-class-component.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-class-component v5.0.1
* vue-class-component v5.0.2
* (c) 2015-2017 Evan You
* @license MIT
*/
Expand All @@ -12,11 +12,15 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
var Vue = _interopDefault(require('vue'));

function createDecorator(factory) {
return function (_, key, index) {
return function (target, key, index) {
var Ctor = target.constructor;
if (!Ctor.__decorators__) {
Ctor.__decorators__ = [];
}
if (typeof index !== 'number') {
index = undefined;
}
$decoratorQueue.push(function (options) { return factory(options, key, index); });
Ctor.__decorators__.push(function (options) { return factory(options, key, index); });
};
}
function warn(message) {
Expand Down Expand Up @@ -75,7 +79,6 @@ var $internalHooks = [
'deactivated',
'render'
];
var $decoratorQueue = [];
function componentFactory(Component, options) {
if (options === void 0) { options = {}; }
options.name = options.name || Component._componentTag || Component.name;
Expand Down Expand Up @@ -104,8 +107,10 @@ function componentFactory(Component, options) {
return collectDataFromConstructor(this, Component);
}
});
$decoratorQueue.forEach(function (fn) { return fn(options); });
$decoratorQueue = [];
var decorators = Component.__decorators__;
if (decorators) {
decorators.forEach(function (fn) { return fn(options); });
}
var superProto = Object.getPrototypeOf(Component.prototype);
var Super = superProto instanceof Vue
? superProto.constructor
Expand Down
19 changes: 12 additions & 7 deletions dist/vue-class-component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-class-component v5.0.1
* vue-class-component v5.0.2
* (c) 2015-2017 Evan You
* @license MIT
*/
Expand All @@ -9,14 +9,18 @@
(factory((global.VueClassComponent = global.VueClassComponent || {}),global.Vue));
}(this, (function (exports,Vue) { 'use strict';

Vue = 'default' in Vue ? Vue['default'] : Vue;
Vue = Vue && 'default' in Vue ? Vue['default'] : Vue;

function createDecorator(factory) {
return function (_, key, index) {
return function (target, key, index) {
var Ctor = target.constructor;
if (!Ctor.__decorators__) {
Ctor.__decorators__ = [];
}
if (typeof index !== 'number') {
index = undefined;
}
$decoratorQueue.push(function (options) { return factory(options, key, index); });
Ctor.__decorators__.push(function (options) { return factory(options, key, index); });
};
}
function warn(message) {
Expand Down Expand Up @@ -75,7 +79,6 @@ var $internalHooks = [
'deactivated',
'render'
];
var $decoratorQueue = [];
function componentFactory(Component, options) {
if (options === void 0) { options = {}; }
options.name = options.name || Component._componentTag || Component.name;
Expand Down Expand Up @@ -104,8 +107,10 @@ function componentFactory(Component, options) {
return collectDataFromConstructor(this, Component);
}
});
$decoratorQueue.forEach(function (fn) { return fn(options); });
$decoratorQueue = [];
var decorators = Component.__decorators__;
if (decorators) {
decorators.forEach(function (fn) { return fn(options); });
}
var superProto = Object.getPrototypeOf(Component.prototype);
var Super = superProto instanceof Vue
? superProto.constructor
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-class-component.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27fa55b

Please sign in to comment.