Skip to content

Commit

Permalink
[build] 0.5.3
Browse files Browse the repository at this point in the history
fix kernel property update bug on [#40](#40)
fix event unbind bug on [#42](#40)
  • Loading branch information
toxic-johann committed Nov 24, 2017
1 parent 78677e2 commit 1146f68
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bundle-size/common.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle-size/es.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle-size/min.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle-size/umd.html

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions lib/index.browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.5.2
* chimee v0.5.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -8145,6 +8145,8 @@ var accessorMap = {
var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
return str.toLocaleLowerCase();
}), (_class$5 = function () {

// 会逐渐被遗弃
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -8204,6 +8206,8 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
key: 'init',
Expand Down Expand Up @@ -8247,7 +8251,7 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
}), _descriptor6 = _applyDecoratedDescriptor$4(_class$5.prototype, '_kernelProperty', [frozen], {
enumerable: true,
initializer: function initializer() {
return ['isLive', 'box', 'preset'];
return ['isLive', 'box', 'preset', 'kernels'];
}
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [frozen], {
enumerable: true,
Expand Down Expand Up @@ -8821,7 +8825,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.5.2';
_this.VERSION = '0.5.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -9558,9 +9562,11 @@ var Dom = (_dec$6 = waituntil('__dispatcher.videoConfigReady'), _dec2$4 = before
videoEvents.forEach(function (key, index$$1) {
removeEvent(_this3.videoElement, key, _this3.videoEventHandlerList[index$$1]);
});
this.videoEventHandlerList = [];
domEvents.forEach(function (key, index$$1) {
removeEvent(_this3.videoElement, key, _this3.videoDomEventHandlerList[index$$1]);
});
this.videoDomEventHandlerList = [];
$(videoElement).remove();
delete this.videoElement;
return videoElement;
Expand Down Expand Up @@ -10293,6 +10299,7 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
this.dom.installVideo(video);
// as we will reset the currentVideoConfig on the new video
// it will trigger the watch function as they maybe differnet
// because video config will return the real situation
// so we need to stop them
this.videoConfig.changeWatchable = false;
this.videoConfig.autoload = false;
Expand All @@ -10303,6 +10310,13 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
});
this.videoConfig.changeWatchable = true;
this.kernel = kernel;
var isLive = config.isLive,
box = config.box,
preset = config.preset,
kernels = config.kernels;

_Object$assign(this.videoConfig, { isLive: isLive, box: box, preset: preset, kernels: kernels });
// const config = {}
oldKernel.destroy();
}
/**
Expand Down Expand Up @@ -10731,7 +10745,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.5.2';
return '0.5.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
22 changes: 18 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.5.2
* chimee v0.5.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -745,6 +745,8 @@ var accessorMap = {
var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecorators.initString(function (str) {
return str.toLocaleLowerCase();
}), (_class$5 = function () {

// 会逐渐被遗弃
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -804,6 +806,8 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
key: 'init',
Expand Down Expand Up @@ -847,7 +851,7 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
}), _descriptor6 = _applyDecoratedDescriptor$4(_class$5.prototype, '_kernelProperty', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return ['isLive', 'box', 'preset'];
return ['isLive', 'box', 'preset', 'kernels'];
}
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [toxicDecorators.frozen], {
enumerable: true,
Expand Down Expand Up @@ -1421,7 +1425,7 @@ var Plugin = (_dec$3 = toxicDecorators.autobindClass(), _dec$3(_class$3 = functi
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.5.2';
_this.VERSION = '0.5.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -1877,9 +1881,11 @@ var Dom = (_dec$6 = toxicDecorators.waituntil('__dispatcher.videoConfigReady'),
videoEvents.forEach(function (key, index) {
chimeeHelper.removeEvent(_this3.videoElement, key, _this3.videoEventHandlerList[index]);
});
this.videoEventHandlerList = [];
domEvents.forEach(function (key, index) {
chimeeHelper.removeEvent(_this3.videoElement, key, _this3.videoDomEventHandlerList[index]);
});
this.videoDomEventHandlerList = [];
chimeeHelper.$(videoElement).remove();
delete this.videoElement;
return videoElement;
Expand Down Expand Up @@ -2612,6 +2618,7 @@ var Dispatcher = (_dec$1 = toxicDecorators.before(convertNameIntoId), _dec2 = to
this.dom.installVideo(video);
// as we will reset the currentVideoConfig on the new video
// it will trigger the watch function as they maybe differnet
// because video config will return the real situation
// so we need to stop them
this.videoConfig.changeWatchable = false;
this.videoConfig.autoload = false;
Expand All @@ -2622,6 +2629,13 @@ var Dispatcher = (_dec$1 = toxicDecorators.before(convertNameIntoId), _dec2 = to
});
this.videoConfig.changeWatchable = true;
this.kernel = kernel;
var isLive = config.isLive,
box = config.box,
preset = config.preset,
kernels = config.kernels;

_Object$assign(this.videoConfig, { isLive: isLive, box: box, preset: preset, kernels: kernels });
// const config = {}
oldKernel.destroy();
}
/**
Expand Down Expand Up @@ -3050,7 +3064,7 @@ var Chimee = (_dec = toxicDecorators.autobindClass(), _dec(_class = (_class2 = (
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return '0.5.2';
return '0.5.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [toxicDecorators.frozen], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.5.2
* chimee v0.5.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -741,6 +741,8 @@ var accessorMap = {
var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
return str.toLocaleLowerCase();
}), (_class$5 = function () {

// 会逐渐被遗弃
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -800,6 +802,8 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
key: 'init',
Expand Down Expand Up @@ -843,7 +847,7 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
}), _descriptor6 = _applyDecoratedDescriptor$4(_class$5.prototype, '_kernelProperty', [frozen], {
enumerable: true,
initializer: function initializer() {
return ['isLive', 'box', 'preset'];
return ['isLive', 'box', 'preset', 'kernels'];
}
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [frozen], {
enumerable: true,
Expand Down Expand Up @@ -1417,7 +1421,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.5.2';
_this.VERSION = '0.5.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -1873,9 +1877,11 @@ var Dom = (_dec$6 = waituntil('__dispatcher.videoConfigReady'), _dec2$4 = before
videoEvents.forEach(function (key, index) {
removeEvent(_this3.videoElement, key, _this3.videoEventHandlerList[index]);
});
this.videoEventHandlerList = [];
domEvents.forEach(function (key, index) {
removeEvent(_this3.videoElement, key, _this3.videoDomEventHandlerList[index]);
});
this.videoDomEventHandlerList = [];
$(videoElement).remove();
delete this.videoElement;
return videoElement;
Expand Down Expand Up @@ -2608,6 +2614,7 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
this.dom.installVideo(video);
// as we will reset the currentVideoConfig on the new video
// it will trigger the watch function as they maybe differnet
// because video config will return the real situation
// so we need to stop them
this.videoConfig.changeWatchable = false;
this.videoConfig.autoload = false;
Expand All @@ -2618,6 +2625,13 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
});
this.videoConfig.changeWatchable = true;
this.kernel = kernel;
var isLive = config.isLive,
box = config.box,
preset = config.preset,
kernels = config.kernels;

_Object$assign(this.videoConfig, { isLive: isLive, box: box, preset: preset, kernels: kernels });
// const config = {}
oldKernel.destroy();
}
/**
Expand Down Expand Up @@ -3046,7 +3060,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.5.2';
return '0.5.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chimee",
"version": "0.5.2",
"version": "0.5.3",
"description": "a video-player aims to bring wonderful experience on browser",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit 1146f68

Please sign in to comment.