feat:fix when reloading wont work
This commit is contained in:
parent
a0a11fcb82
commit
5a440e30f4
@ -161,6 +161,7 @@ public class DoricContext {
|
|||||||
|
|
||||||
public void reload(String script) {
|
public void reload(String script) {
|
||||||
this.script = script;
|
this.script = script;
|
||||||
|
this.mRootNode.setId("");
|
||||||
getDriver().createContext(mContextId, script, source);
|
getDriver().createContext(mContextId, script, source);
|
||||||
callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams);
|
callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams);
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,7 @@ - (void)initContextWithWidth:(CGFloat)width height:(CGFloat)height {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)reload:(NSString *)script {
|
- (void)reload:(NSString *)script {
|
||||||
|
self.rootNode.viewId = nil;
|
||||||
self.script = script;
|
self.script = script;
|
||||||
[self.driver createContext:self.contextId script:script source:self.source];
|
[self.driver createContext:self.contextId script:script source:self.source];
|
||||||
[self callEntity:DORIC_ENTITY_INIT, self.initialParams, nil];
|
[self callEntity:DORIC_ENTITY_INIT, self.initialParams, nil];
|
||||||
|
Reference in New Issue
Block a user