when and where is createContent called

简介: Created by Jerry Wang, last modified on Aug 07, 2014

Created by Jerry Wang, last modified on Aug 07, 2014

initCompositeSupport

Support

Composite

onControllerConnected

oController

createId

byId

runWithPreprocessors

Preprocessors

applySettings

Trigger point为Js view的初始化:


image.png


Callstack1: Js view instance 执行initCompositeSupport操作:


image.png


Callstack2: this指向JS view,this.oController指向对应的controller instance:


image.png


Callstack3: 在onControllerConnected方法内,执行runWithPreprocessors. t指向JS view instance。


image.png



Callstack4: 执行传入的function f. Function f 会执行JS view instance的applySettings方法,其输入参数为createContent执行的返回结果。


image.png

于是view的createContent方法被触发:

image.png

相关文章
|
18天前
|
NoSQL 编译器 API
关于thread使用的错误:pure virtual method called terminate called without an active exception
关于thread使用的错误:pure virtual method called terminate called without an active exception
16 1
getReader() has already been called for this request
getReader() has already been called for this request
1493 0
getReader() has already been called for this request
|
12月前
|
Java Maven
An attempt was made to call a method that does not exist. The attempt was made from the following
An attempt was made to call a method that does not exist. The attempt was made from the following
282 0
|
12月前
[joint_state_publisher-3] process has died
[joint_state_publisher-3] process has died
This error might indicate a memory leak if setState() is being called because another object is reta
This error might indicate a memory leak if setState() is being called because another object is reta
解决RuntimeError: running_mean should contain 36864 elements not 4096
一般在卷积层Conv2d后添加正则化BNBatchNormal,使得数据在relu激活前不会因为数据过大而导致网络不稳定,而我在代码中BatchNorm2d的输入通道数与前一层Conv2d的输出通道数不一致,导致报这个错,两者修改一直即可(这里修改为36864即可)。
953 0
|
JavaScript
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
|
JavaScript
when and where is getControllerName called
Created by Jerry Wang on Aug 07, 2014
when and where is getControllerName called
|
JavaScript
when and where is createContent called
Created by Jerry Wang, last modified on Aug 07, 2014
when and where is createContent called
2015-03-17 current note creation logic in my task
2015-03-17 current note creation logic in my task
89 0
2015-03-17 current note creation logic in my task

热门文章

最新文章