Skip to content

Commit

Permalink
build: 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jun 9, 2018
1 parent cb88a0d commit 8ec4062
Show file tree
Hide file tree
Showing 9 changed files with 17,158 additions and 84 deletions.
4,266 changes: 4,262 additions & 4 deletions bundle-size/common.html

Large diffs are not rendered by default.

4,266 changes: 4,262 additions & 4 deletions bundle-size/es.html

Large diffs are not rendered by default.

4,266 changes: 4,262 additions & 4 deletions bundle-size/min.html

Large diffs are not rendered by default.

4,266 changes: 4,262 additions & 4 deletions bundle-size/umd.html

Large diffs are not rendered by default.

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

/**
* chimee v0.10.0
* chimee v0.10.1
* (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.0';
_this.VERSION = '0.10.1';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -7881,10 +7881,6 @@
value: function __inited() {
var _this2 = this;

if (this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id]) {
this.__dispatcher.binder.applyPendingEvents('video-dom');
this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id] = false;
}
var result = void 0;
try {
result = isFunction(this.inited) && this.inited();
Expand Down Expand Up @@ -9559,7 +9555,6 @@
this.bindedEventNames = {};
this.bindedEventInfo = {};
this.pendingEventsInfo = {};
this.needToCheckPendingVideoDomEventPlugins = {};
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
Expand Down Expand Up @@ -10137,6 +10132,20 @@
*/
this.kernel = this._createKernel(this.dom.videoElement, this.videoConfig);
this.binder.applyPendingEvents('kernel');
if (config.noDefaultContextMenu) {
var noDefaultContextMenu = config.noDefaultContextMenu;

var target = noDefaultContextMenu === 'container' || noDefaultContextMenu === 'wrapper' ? noDefaultContextMenu : 'video-dom';
this.binder.on({
target: target,
id: '_vm',
name: 'contextmenu',
fn: function fn(evt) {
return evt.preventDefault();
},
stage: 'main'
});
}
// trigger auto load event
var asyncInitedTasks = [];
this.order.forEach(function (key) {
Expand All @@ -10149,22 +10158,10 @@
// tell them we have inited the whold player
this.ready = this.readySync ? _Promise.resolve() : _Promise.all(asyncInitedTasks).then(function () {
_this.readySync = true;
_this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
_this._autoloadVideoSrcAtFirst();
_this.onReady();
});
if (this.readySync) this._autoloadVideoSrcAtFirst();
if (this.readySync) this.onReady();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

// to save the kernel event handler, so that we can remove it when we destroy the kernel

/**
Expand All @@ -10181,6 +10178,23 @@


_createClass(Dispatcher, [{
key: 'onReady',
value: function onReady() {
this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
this._autoloadVideoSrcAtFirst();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

}, {
key: 'use',
value: function use(option) {
if (isString(option)) option = { name: option, alias: undefined };
Expand Down Expand Up @@ -11225,7 +11239,7 @@
}), _descriptor2$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.0';
return '0.10.1';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
58 changes: 36 additions & 22 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.0
* chimee v0.10.1
* (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.0';
_this.VERSION = '0.10.1';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -1443,10 +1443,6 @@ var Plugin = (_dec$2 = toxicDecorators.autobindClass(), _dec$2(_class$2 = functi
value: function __inited() {
var _this2 = this;

if (this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id]) {
this.__dispatcher.binder.applyPendingEvents('video-dom');
this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id] = false;
}
var result = void 0;
try {
result = chimeeHelper.isFunction(this.inited) && this.inited();
Expand Down Expand Up @@ -2625,7 +2621,6 @@ var Binder = (_dec$5 = toxicDecorators.before(prettifyEventParameter), _dec2$4 =
this.bindedEventNames = {};
this.bindedEventInfo = {};
this.pendingEventsInfo = {};
this.needToCheckPendingVideoDomEventPlugins = {};
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
Expand Down Expand Up @@ -3203,6 +3198,20 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
*/
this.kernel = this._createKernel(this.dom.videoElement, this.videoConfig);
this.binder.applyPendingEvents('kernel');
if (config.noDefaultContextMenu) {
var noDefaultContextMenu = config.noDefaultContextMenu;

var target = noDefaultContextMenu === 'container' || noDefaultContextMenu === 'wrapper' ? noDefaultContextMenu : 'video-dom';
this.binder.on({
target: target,
id: '_vm',
name: 'contextmenu',
fn: function fn(evt) {
return evt.preventDefault();
},
stage: 'main'
});
}
// trigger auto load event
var asyncInitedTasks = [];
this.order.forEach(function (key) {
Expand All @@ -3215,22 +3224,10 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
// tell them we have inited the whold player
this.ready = this.readySync ? _Promise.resolve() : _Promise.all(asyncInitedTasks).then(function () {
_this.readySync = true;
_this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
_this._autoloadVideoSrcAtFirst();
_this.onReady();
});
if (this.readySync) this._autoloadVideoSrcAtFirst();
if (this.readySync) this.onReady();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

// to save the kernel event handler, so that we can remove it when we destroy the kernel

/**
Expand All @@ -3247,6 +3244,23 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =


_createClass(Dispatcher, [{
key: 'onReady',
value: function onReady() {
this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
this._autoloadVideoSrcAtFirst();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

}, {
key: 'use',
value: function use(option) {
if (chimeeHelper.isString(option)) option = { name: option, alias: undefined };
Expand Down Expand Up @@ -4082,7 +4096,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.0';
return '0.10.1';
}
}), _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.

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

/**
* chimee v0.10.0
* chimee v0.10.1
* (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.0';
_this.VERSION = '0.10.1';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -1439,10 +1439,6 @@ var Plugin = (_dec$2 = autobindClass(), _dec$2(_class$2 = function (_VideoWrappe
value: function __inited() {
var _this2 = this;

if (this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id]) {
this.__dispatcher.binder.applyPendingEvents('video-dom');
this.__dispatcher.binder.needToCheckPendingVideoDomEventPlugins[this.__id] = false;
}
var result = void 0;
try {
result = isFunction(this.inited) && this.inited();
Expand Down Expand Up @@ -2621,7 +2617,6 @@ var Binder = (_dec$5 = before(prettifyEventParameter), _dec2$4 = before(prettify
this.bindedEventNames = {};
this.bindedEventInfo = {};
this.pendingEventsInfo = {};
this.needToCheckPendingVideoDomEventPlugins = {};
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
Expand Down Expand Up @@ -3199,6 +3194,20 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
*/
this.kernel = this._createKernel(this.dom.videoElement, this.videoConfig);
this.binder.applyPendingEvents('kernel');
if (config.noDefaultContextMenu) {
var noDefaultContextMenu = config.noDefaultContextMenu;

var target = noDefaultContextMenu === 'container' || noDefaultContextMenu === 'wrapper' ? noDefaultContextMenu : 'video-dom';
this.binder.on({
target: target,
id: '_vm',
name: 'contextmenu',
fn: function fn(evt) {
return evt.preventDefault();
},
stage: 'main'
});
}
// trigger auto load event
var asyncInitedTasks = [];
this.order.forEach(function (key) {
Expand All @@ -3211,22 +3220,10 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
// tell them we have inited the whold player
this.ready = this.readySync ? _Promise.resolve() : _Promise.all(asyncInitedTasks).then(function () {
_this.readySync = true;
_this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
_this._autoloadVideoSrcAtFirst();
_this.onReady();
});
if (this.readySync) this._autoloadVideoSrcAtFirst();
if (this.readySync) this.onReady();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

// to save the kernel event handler, so that we can remove it when we destroy the kernel

/**
Expand All @@ -3243,6 +3240,23 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug


_createClass(Dispatcher, [{
key: 'onReady',
value: function onReady() {
this.binder.trigger({
target: 'plugin',
name: 'ready',
id: 'dispatcher'
});
this._autoloadVideoSrcAtFirst();
}

/**
* use a plugin, which means we will new a plugin instance and include int this Chimee instance
* @param {Object|string} option you can just set a plugin name or plugin config
* @return {Promise}
*/

}, {
key: 'use',
value: function use(option) {
if (isString(option)) option = { name: option, alias: undefined };
Expand Down Expand Up @@ -4078,7 +4092,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.0';
return '0.10.1';
}
}), _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.0",
"version": "0.10.1",
"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 8ec4062

Please sign in to comment.