Skip to content

Commit

Permalink
build: 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jun 19, 2018
1 parent 44b5549 commit d995ca5
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 36 deletions.
2 changes: 1 addition & 1 deletion bundle-size/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h1>RollUp Visualizer</h1>
</div>
</div>
</div>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2224,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5228,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21963,"originalSize":14224},{"name":"plugin.js","children":[],"size":11500,"originalSize":9887},{"name":"dom.js","children":[],"size":16628,"originalSize":12359},{"name":"bus.js","children":[],"size":17943,"originalSize":13895},{"name":"binder.js","children":[],"size":21524,"originalSize":13863},{"name":"index.js","children":[],"size":30741,"originalSize":24978}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":821,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":12110,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":1002,"originalSize":1106},{"name":"global.js","children":[],"size":2874,"originalSize":1500}]},{"name":"index.js","children":[],"size":9377,"originalSize":4185}]};</script>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2224,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5228,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21963,"originalSize":14224},{"name":"plugin.js","children":[],"size":11500,"originalSize":9887},{"name":"dom.js","children":[],"size":16628,"originalSize":12359},{"name":"bus.js","children":[],"size":17943,"originalSize":13895},{"name":"binder.js","children":[],"size":21524,"originalSize":13863},{"name":"index.js","children":[],"size":31057,"originalSize":25308}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":821,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":12110,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":1002,"originalSize":1106},{"name":"global.js","children":[],"size":2874,"originalSize":1500}]},{"name":"index.js","children":[],"size":9377,"originalSize":4185}]};</script>
<script charset="UTF-8">
(function () {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion bundle-size/es.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h1>RollUp Visualizer</h1>
</div>
</div>
</div>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2185,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5098,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21109,"originalSize":14224},{"name":"plugin.js","children":[],"size":10972,"originalSize":9887},{"name":"dom.js","children":[],"size":15966,"originalSize":12359},{"name":"bus.js","children":[],"size":17515,"originalSize":13895},{"name":"binder.js","children":[],"size":21127,"originalSize":13863},{"name":"index.js","children":[],"size":29458,"originalSize":24978}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":795,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":11442,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":963,"originalSize":1106},{"name":"global.js","children":[],"size":2800,"originalSize":1500}]},{"name":"index.js","children":[],"size":9039,"originalSize":4185}]};</script>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2185,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5098,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21109,"originalSize":14224},{"name":"plugin.js","children":[],"size":10972,"originalSize":9887},{"name":"dom.js","children":[],"size":15966,"originalSize":12359},{"name":"bus.js","children":[],"size":17515,"originalSize":13895},{"name":"binder.js","children":[],"size":21127,"originalSize":13863},{"name":"index.js","children":[],"size":29774,"originalSize":25308}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":795,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":11442,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":963,"originalSize":1106},{"name":"global.js","children":[],"size":2800,"originalSize":1500}]},{"name":"index.js","children":[],"size":9039,"originalSize":4185}]};</script>
<script charset="UTF-8">
(function () {
'use strict';
Expand Down
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.

27 changes: 17 additions & 10 deletions lib/index.browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.1
* chimee v0.10.2
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -7734,7 +7734,7 @@
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.1';
_this.VERSION = '0.10.2';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -10430,13 +10430,14 @@
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels;
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

if (box !== 'native' || box !== oldBox || !isEmpty(option)) {
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
this.switchKernel({ video: video, kernel: kernel, config: config });
this.switchKernel({ video: video, kernel: kernel, config: config, notifyChange: isFirst });
}
var originAutoLoad = this.videoConfig.autoload;
this._changeUnwatchable(this.videoConfig, 'autoload', false);
Expand All @@ -10451,7 +10452,8 @@

var video = _ref.video,
kernel = _ref.kernel,
config = _ref.config;
config = _ref.config,
notifyChange = _ref.notifyChange;

var oldKernel = this.kernel;
var originVideoConfig = deepClone(this.videoConfig);
Expand Down Expand Up @@ -10482,9 +10484,14 @@
oldKernel.destroy();
// delay video event binding
// so that people can't feel the default value change
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
// unless it's caused by autoload
if (notifyChange) {
this.binder && this.binder.bindEventOnVideo && this.binder.bindEventOnVideo(video);
} else {
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
}
}

/**
Expand Down Expand Up @@ -10588,7 +10595,7 @@
name: 'load',
target: 'plugin',
id: 'dispatcher'
}, this.videoConfig.src);
}, { src: this.videoConfig.src, isFirst: true });
}
}
}, {
Expand Down Expand Up @@ -11239,7 +11246,7 @@
}), _descriptor2$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.1';
return '0.10.2';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
27 changes: 17 additions & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.1
* chimee v0.10.2
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -1296,7 +1296,7 @@ var Plugin = (_dec$2 = toxicDecorators.autobindClass(), _dec$2(_class$2 = functi
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.1';
_this.VERSION = '0.10.2';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3496,13 +3496,14 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels;
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

if (box !== 'native' || box !== oldBox || !chimeeHelper.isEmpty(option)) {
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
this.switchKernel({ video: video, kernel: kernel, config: config });
this.switchKernel({ video: video, kernel: kernel, config: config, notifyChange: isFirst });
}
var originAutoLoad = this.videoConfig.autoload;
this._changeUnwatchable(this.videoConfig, 'autoload', false);
Expand All @@ -3517,7 +3518,8 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =

var video = _ref.video,
kernel = _ref.kernel,
config = _ref.config;
config = _ref.config,
notifyChange = _ref.notifyChange;

var oldKernel = this.kernel;
var originVideoConfig = chimeeHelper.deepClone(this.videoConfig);
Expand Down Expand Up @@ -3548,9 +3550,14 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
oldKernel.destroy();
// delay video event binding
// so that people can't feel the default value change
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
// unless it's caused by autoload
if (notifyChange) {
this.binder && this.binder.bindEventOnVideo && this.binder.bindEventOnVideo(video);
} else {
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
}
}

/**
Expand Down Expand Up @@ -3654,7 +3661,7 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
name: 'load',
target: 'plugin',
id: 'dispatcher'
}, this.videoConfig.src);
}, { src: this.videoConfig.src, isFirst: true });
}
}
}, {
Expand Down Expand Up @@ -4096,7 +4103,7 @@ var Chimee = (_dec$7 = toxicDecorators.autobindClass(), _dec$7(_class$8 = (_clas
}), _descriptor2$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'version', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.1';
return '0.10.2';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$7(_class2$1.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.

27 changes: 17 additions & 10 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.1
* chimee v0.10.2
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -1292,7 +1292,7 @@ var Plugin = (_dec$2 = autobindClass(), _dec$2(_class$2 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.1';
_this.VERSION = '0.10.2';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3492,13 +3492,14 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels;
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

if (box !== 'native' || box !== oldBox || !isEmpty(option)) {
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
this.switchKernel({ video: video, kernel: kernel, config: config });
this.switchKernel({ video: video, kernel: kernel, config: config, notifyChange: isFirst });
}
var originAutoLoad = this.videoConfig.autoload;
this._changeUnwatchable(this.videoConfig, 'autoload', false);
Expand All @@ -3513,7 +3514,8 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug

var video = _ref.video,
kernel = _ref.kernel,
config = _ref.config;
config = _ref.config,
notifyChange = _ref.notifyChange;

var oldKernel = this.kernel;
var originVideoConfig = deepClone(this.videoConfig);
Expand Down Expand Up @@ -3544,9 +3546,14 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
oldKernel.destroy();
// delay video event binding
// so that people can't feel the default value change
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
// unless it's caused by autoload
if (notifyChange) {
this.binder && this.binder.bindEventOnVideo && this.binder.bindEventOnVideo(video);
} else {
setTimeout(function () {
_this3.binder && _this3.binder.bindEventOnVideo && _this3.binder.bindEventOnVideo(video);
});
}
}

/**
Expand Down Expand Up @@ -3650,7 +3657,7 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
name: 'load',
target: 'plugin',
id: 'dispatcher'
}, this.videoConfig.src);
}, { src: this.videoConfig.src, isFirst: true });
}
}
}, {
Expand Down Expand Up @@ -4092,7 +4099,7 @@ var Chimee = (_dec$7 = autobindClass(), _dec$7(_class$8 = (_class2$1 = (_temp =
}), _descriptor2$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.1';
return '0.10.2';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$7(_class2$1.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.10.1",
"version": "0.10.2",
"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 d995ca5

Please sign in to comment.