Skip to content

Commit

Permalink
[build] 0.2.3
Browse files Browse the repository at this point in the history
What:
Why:
How:
  • Loading branch information
toxic-johann committed Aug 2, 2017
1 parent a9d833d commit 1e64c39
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 27 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: 15 additions & 7 deletions lib/index.browser.js
@@ -1,6 +1,6 @@

/**
* chimee v0.2.2
* chimee v0.2.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -7261,7 +7261,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.2.2';
_this.VERSION = '0.2.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -8086,7 +8086,7 @@ function convertNameIntoId(name) {
function checkPluginConfig(config) {
if (isFunction(config)) {
if (!(config.prototype instanceof Plugin)) {
throw new TypeError('If you pass a function as plugin config, this class must extends from Chimee.plugin');
throw new TypeError('Your are trying to install plugin ' + config.name + ', but it\'s not extends from Chimee.plugin.');
}
return;
}
Expand Down Expand Up @@ -8376,9 +8376,17 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
return _Promise.reject(new Error('user abort the mission'));
}
var paused = _this2.dom.videoElement.paused;
_this2.switchKernel({ video: video, kernel: kernel, config: config });
if (!paused) _this2.dom.videoElement.play();
return _Promise.resolve();
if (paused) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
return _Promise.resolve();
}
return new _Promise(function (resolve) {
addEvent(video, 'play', function (evt) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
resolve();
}, true);
video.play();
});
});
}
}, {
Expand Down Expand Up @@ -8810,7 +8818,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.2.2';
return '0.2.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
22 changes: 15 additions & 7 deletions lib/index.js
@@ -1,6 +1,6 @@

/**
* chimee v0.2.2
* chimee v0.2.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -1367,7 +1367,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.2.2';
_this.VERSION = '0.2.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -2192,7 +2192,7 @@ function convertNameIntoId(name) {
function checkPluginConfig(config) {
if (chimeeHelper.isFunction(config)) {
if (!(config.prototype instanceof Plugin)) {
throw new TypeError('If you pass a function as plugin config, this class must extends from Chimee.plugin');
throw new TypeError('Your are trying to install plugin ' + config.name + ', but it\'s not extends from Chimee.plugin.');
}
return;
}
Expand Down Expand Up @@ -2482,9 +2482,17 @@ var Dispatcher = (_dec$1 = toxicDecorators.before(convertNameIntoId), _dec2 = to
return _Promise.reject(new Error('user abort the mission'));
}
var paused = _this2.dom.videoElement.paused;
_this2.switchKernel({ video: video, kernel: kernel, config: config });
if (!paused) _this2.dom.videoElement.play();
return _Promise.resolve();
if (paused) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
return _Promise.resolve();
}
return new _Promise(function (resolve) {
chimeeHelper.addEvent(video, 'play', function (evt) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
resolve();
}, true);
video.play();
});
});
}
}, {
Expand Down Expand Up @@ -2916,7 +2924,7 @@ var Chimee = (_dec = toxicDecorators.autobindClass(), _dec(_class = (_class2 = (
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return '0.2.2';
return '0.2.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: 15 additions & 7 deletions lib/index.mjs
@@ -1,6 +1,6 @@

/**
* chimee v0.2.2
* chimee v0.2.3
* (c) 2017 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -1363,7 +1363,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.2.2';
_this.VERSION = '0.2.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -2188,7 +2188,7 @@ function convertNameIntoId(name) {
function checkPluginConfig(config) {
if (isFunction(config)) {
if (!(config.prototype instanceof Plugin)) {
throw new TypeError('If you pass a function as plugin config, this class must extends from Chimee.plugin');
throw new TypeError('Your are trying to install plugin ' + config.name + ', but it\'s not extends from Chimee.plugin.');
}
return;
}
Expand Down Expand Up @@ -2478,9 +2478,17 @@ var Dispatcher = (_dec$1 = before(convertNameIntoId), _dec2 = before(checkPlugin
return _Promise.reject(new Error('user abort the mission'));
}
var paused = _this2.dom.videoElement.paused;
_this2.switchKernel({ video: video, kernel: kernel, config: config });
if (!paused) _this2.dom.videoElement.play();
return _Promise.resolve();
if (paused) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
return _Promise.resolve();
}
return new _Promise(function (resolve) {
addEvent(video, 'play', function (evt) {
_this2.switchKernel({ video: video, kernel: kernel, config: config });
resolve();
}, true);
video.play();
});
});
}
}, {
Expand Down Expand Up @@ -2912,7 +2920,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.2.2';
return '0.2.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "chimee",
"version": "0.2.2",
"version": "0.2.3",
"description": "a video-player aims to bing wonderful experience on browser",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit 1e64c39

Please sign in to comment.