| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-sdk", | |||
| "version": "1.10.3", | |||
| "version": "1.10.4", | |||
| "description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.", | |||
| "main": "index.js", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| @@ -18,11 +18,9 @@ const install = function(DC) { | |||
| DC.ready = callback => { | |||
| try { | |||
| if (!DC.Initialized) { | |||
| new Promise((resolve, reject) => { | |||
| DC.init(() => { | |||
| require('../thirdpart') | |||
| require('./Loader') | |||
| resolve() | |||
| }).then(() => { | |||
| DC.Initialized = true | |||
| callback && callback() | |||
| }) | |||