File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " whs" ,
3
- "version" : " 2.1.8-vrfix.3 " ,
3
+ "version" : " 2.1.8" ,
4
4
"description" : " Super-fast 3D framework for Web Applications & Games. Based on Three.js" ,
5
5
"main" : " build/whs.js" ,
6
6
"jsnext:main" : " build/whs.module.js" ,
Original file line number Diff line number Diff line change @@ -150,21 +150,23 @@ class Component extends ModuleSystem {
150
150
object . parent = this ;
151
151
152
152
return new Promise ( ( resolve , reject ) => {
153
- object . defer ( ( ) => {
154
- const { native} = object ;
155
- if ( ! native ) reject ( ) ;
153
+ this . defer ( ( ) => {
154
+ object . defer ( ( ) => {
155
+ const { native} = object ;
156
+ if ( ! native ) reject ( ) ;
156
157
157
- const addPromise = this . applyBridge ( { onAdd : object } ) . onAdd ;
158
+ const addPromise = this . applyBridge ( { onAdd : object } ) . onAdd ;
158
159
159
- const resolver = ( ) => {
160
- this . native . add ( native ) ;
161
- this . children . push ( object ) ;
160
+ const resolver = ( ) => {
161
+ this . native . add ( native ) ;
162
+ this . children . push ( object ) ;
162
163
163
- resolve ( object ) ;
164
- } ;
164
+ resolve ( object ) ;
165
+ } ;
165
166
166
- if ( addPromise instanceof Promise ) addPromise . then ( resolver ) ;
167
- else resolver ( ) ;
167
+ if ( addPromise instanceof Promise ) addPromise . then ( resolver ) ;
168
+ else resolver ( ) ;
169
+ } ) ;
168
170
} ) ;
169
171
} ) ;
170
172
}
You can’t perform that action at this time.
0 commit comments