omi - fix static data

This commit is contained in:
dntzhang 2019-03-20 21:47:39 +08:00
parent 0dd8161d98
commit d90b95942e
11 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
/**
* omi v6.0.2 http://omijs.org
* omi v6.0.3 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
@ -1264,7 +1264,7 @@
this.instances.forEach(function (instance) {
if (updateAll || _this.updateAll || instance.constructor.updatePath && needUpdate(patch, instance.constructor.updatePath)) {
//update this.use
instance.use = getUse(store.data, instance.constructor.use);
instance.constructor.use && (instance.use = getUse(store.data, instance.constructor.use));
instance.update();
}
});
@ -1666,7 +1666,7 @@
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.0.2';
options.root.Omi.version = '6.0.3';
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.0.2 http://omijs.org
* omi v6.0.3 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
@ -1261,7 +1261,7 @@ function extendStoreUpate(store) {
this.instances.forEach(function (instance) {
if (updateAll || _this.updateAll || instance.constructor.updatePath && needUpdate(patch, instance.constructor.updatePath)) {
//update this.use
instance.use = getUse(store.data, instance.constructor.use);
instance.constructor.use && (instance.use = getUse(store.data, instance.constructor.use));
instance.update();
}
});
@ -1663,7 +1663,7 @@ var omi = {
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.0.2';
options.root.Omi.version = '6.0.3';
export default omi;
export { tag, WeElement, Component, render, h, h as createElement, options, define, observe, cloneElement, getHost, rpx, tick, nextTick, ModelView, defineElement, classNames, extractClass, createRef };

File diff suppressed because one or more lines are too long

View File

@ -401,7 +401,7 @@
if (Object.keys(patch).length > 0) {
this.instances.forEach(function(instance) {
if (updateAll || _this.updateAll || instance.constructor.updatePath && needUpdate(patch, instance.constructor.updatePath)) {
instance.use = getUse(store.data, instance.constructor.use);
instance.constructor.use && (instance.use = getUse(store.data, instance.constructor.use));
instance.update();
}
});
@ -989,7 +989,7 @@
};
options.root.Omi = omi;
options.root.omi = omi;
options.root.Omi.version = '6.0.2';
options.root.Omi.version = '6.0.3';
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.0.2",
"version": "6.0.3",
"description": "Next generation web framework.",
"main": "dist/omi.js",
"jsnext:main": "dist/omi.esm.js",

View File

@ -43,7 +43,7 @@ const omi = {
options.root.Omi = omi
options.root.omi = omi
options.root.Omi.version = '6.0.2'
options.root.Omi.version = '6.0.3'
export default omi

View File

@ -50,7 +50,7 @@ function extendStoreUpate(store) {
needUpdate(patch, instance.constructor.updatePath))
) {
//update this.use
instance.use = getUse(store.data, instance.constructor.use)
instance.constructor.use && (instance.use = getUse(store.data, instance.constructor.use))
instance.update()
}
})