fix loading, minify with rollup
This commit is contained in:
parent
9c3450947b
commit
dd5237e4ed
156 changed files with 794 additions and 971 deletions
|
|
@ -1,5 +1,7 @@
|
|||
'use strict';
|
||||
import Ox from './Namespace.js';
|
||||
import Ox from './Ox.Global.js';
|
||||
|
||||
var globalEval = eval;
|
||||
|
||||
(function(window) {
|
||||
|
||||
|
|
@ -210,7 +212,7 @@ import Ox from './Namespace.js';
|
|||
}
|
||||
return {
|
||||
parse: function parse(string) {
|
||||
return eval('(' + string + ')');
|
||||
return globalEval('(' + string + ')');
|
||||
},
|
||||
stringify: function stringify(value) {
|
||||
var ret = 'null', type = Ox.typeOf(value);
|
||||
|
|
@ -397,7 +399,7 @@ import Ox from './Namespace.js';
|
|||
].forEach(function(item) {
|
||||
var object = item[0], keys = item[1];
|
||||
keys.forEach(function(key) {
|
||||
if (!key in object) {
|
||||
if (!(key in object)) {
|
||||
if (canDefineProperty) {
|
||||
Object.defineProperty(object, key, {
|
||||
configurable: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue