publish: omi v6.15.1, remove dead code

This commit is contained in:
dntzhang 2019-10-08 10:35:41 +08:00
parent 902a75f2ce
commit b8e58ce80f
11 changed files with 23 additions and 52 deletions

View File

@ -162,7 +162,7 @@ declare namespace Omi {
function render(vnode: ComponentChild, parent: string | Element | Document | ShadowRoot | DocumentFragment, store?: object): any;
function define(name: string, ctorOrDepPaths: any[] | WeElementConstructor, ctorOrOptions?: WeElementConstructor | string | object, cssStringOrOptions?: string | object): void;
function define(name: string, ctor: WeElementConstructor, cssStringOrOptions?: string | object): void;
function defineElement(name: string, ctorOrDepPaths: any[] | WeElementConstructor, ctorOrOptions?: WeElementConstructor | string | object, cssStringOrOptions?: string | object): void;
function tag(name: string, pure?: boolean): (ctor: WeElementConstructor) => void;
function tick(callback: Callback, scope?: any): void;

View File

@ -1,5 +1,5 @@
/**
* omi v6.15.0 http://omijs.org
* omi v6.15.1 http://omijs.org
* Omi === Preact + Scoped CSS + Store System + Native Support in 3kb javascript.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
@ -1569,7 +1569,7 @@
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function define(name, ctor) {
function define(name, ctor, config) {
if (options.mapping[name]) {
return;
}
@ -1577,21 +1577,11 @@
customElements.define(name, ctor);
options.mapping[name] = ctor;
} else {
var config = {};
var len = arguments.length;
if (len === 3) {
if (typeof arguments[1] === 'function') {
ctor = arguments[1];
config = arguments[2];
} else {
ctor = arguments[2];
}
} else if (len === 4) {
ctor = arguments[2];
config = arguments[3];
}
if (typeof config === 'string') {
config = { css: config };
} else {
config = config || {};
}
var Ele = function (_WeElement) {
@ -1784,7 +1774,7 @@
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.15.0';
options.root.Omi.version = '6.15.1';
if (typeof module != 'undefined') module.exports = omi;else self.Omi = omi;
}());

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/**
* omi v6.15.0 http://omijs.org
* omi v6.15.1 http://omijs.org
* Omi === Preact + Scoped CSS + Store System + Native Support in 3kb javascript.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
@ -1566,7 +1566,7 @@ function _possibleConstructorReturn$1(self, call) { if (!self) { throw new Refer
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function define(name, ctor) {
function define(name, ctor, config) {
if (options.mapping[name]) {
return;
}
@ -1574,21 +1574,11 @@ function define(name, ctor) {
customElements.define(name, ctor);
options.mapping[name] = ctor;
} else {
var config = {};
var len = arguments.length;
if (len === 3) {
if (typeof arguments[1] === 'function') {
ctor = arguments[1];
config = arguments[2];
} else {
ctor = arguments[2];
}
} else if (len === 4) {
ctor = arguments[2];
config = arguments[3];
}
if (typeof config === 'string') {
config = { css: config };
} else {
config = config || {};
}
var Ele = function (_WeElement) {
@ -1781,7 +1771,7 @@ var omi = {
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.15.0';
options.root.Omi.version = '6.15.1';
export default omi;
export { tag, WeElement, Component, render, h, h as createElement, options, define, cloneElement, getHost, rpx, defineElement, classNames, extractClass, createRef, html, htm, o, elements, $, extend$1 as extend, get, set, bind, unbind, JSONPatcherProxy as JSONProxy };

File diff suppressed because one or more lines are too long

View File

@ -479,23 +479,14 @@
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
function define(name, ctor) {
function define(name, ctor, config) {
if (!options.mapping[name]) if ('WeElement' === ctor.is) {
customElements.define(name, ctor);
options.mapping[name] = ctor;
} else {
var config = {};
var len = arguments.length;
if (3 === len) if ('function' == typeof arguments[1]) {
ctor = arguments[1];
config = arguments[2];
} else ctor = arguments[2]; else if (4 === len) {
ctor = arguments[2];
config = arguments[3];
}
if ('string' == typeof config) config = {
css: config
};
}; else config = config || {};
var Ele = function(_WeElement) {
function Ele() {
_classCallCheck$1(this, Ele);
@ -1041,7 +1032,7 @@
};
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.15.0';
options.root.Omi.version = '6.15.1';
if ('undefined' != typeof module) module.exports = omi; else self.Omi = omi;
}();
//# sourceMappingURL=omi.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "omi",
"version": "6.15.0",
"version": "6.15.1",
"description": "Front End Cross-Frameworks Framework.",
"main": "dist/omi.js",
"jsnext:main": "dist/omi.esm.js",

View File

@ -55,7 +55,7 @@ const omi = {
options.root.Omi = omi
options.root.omi = omi
options.root.Omi.version = '6.15.0'
options.root.Omi.version = '6.15.1'
export default omi