Skip to content

Commit 226c7e4

Browse files
committed
[build] 6.0.0
1 parent c10d7ad commit 226c7e4

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

dist/vue-class-component.common.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v5.0.2
2+
* vue-class-component v6.0.0
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
@@ -13,7 +13,9 @@ var Vue = _interopDefault(require('vue'));
1313

1414
function createDecorator(factory) {
1515
return function (target, key, index) {
16-
var Ctor = target.constructor;
16+
var Ctor = typeof target === 'function'
17+
? target
18+
: target.constructor;
1719
if (!Ctor.__decorators__) {
1820
Ctor.__decorators__ = [];
1921
}
@@ -77,7 +79,8 @@ var $internalHooks = [
7779
'updated',
7880
'activated',
7981
'deactivated',
80-
'render'
82+
'render',
83+
'errorCaptured'
8184
];
8285
function componentFactory(Component, options) {
8386
if (options === void 0) { options = {}; }

dist/vue-class-component.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/**
2-
* vue-class-component v5.0.2
2+
* vue-class-component v6.0.0
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
66
(function (global, factory) {
77
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
88
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
9-
(factory((global.VueClassComponent = global.VueClassComponent || {}),global.Vue));
9+
(factory((global.VueClassComponent = {}),global.Vue));
1010
}(this, (function (exports,Vue) { 'use strict';
1111

12-
Vue = Vue && 'default' in Vue ? Vue['default'] : Vue;
12+
Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
1313

1414
function createDecorator(factory) {
1515
return function (target, key, index) {
16-
var Ctor = target.constructor;
16+
var Ctor = typeof target === 'function'
17+
? target
18+
: target.constructor;
1719
if (!Ctor.__decorators__) {
1820
Ctor.__decorators__ = [];
1921
}
@@ -77,7 +79,8 @@ var $internalHooks = [
7779
'updated',
7880
'activated',
7981
'deactivated',
80-
'render'
82+
'render',
83+
'errorCaptured'
8184
];
8285
function componentFactory(Component, options) {
8386
if (options === void 0) { options = {}; }

dist/vue-class-component.min.js

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

0 commit comments

Comments
 (0)