pastojs: typecast function to TJSFunction

git-svn-id: trunk@39208 -
This commit is contained in:
Mattias Gaertner 2018-06-10 13:45:40 +00:00
parent cef027199c
commit 118ec57000

View File

@ -2540,6 +2540,10 @@ End.
<li>An external class can descend from another external class.</li>
<li>Since class types are JS objects it is possible to typecast a class type
to the JS Object, e.g. TJSObject(TObject)</li>
<li>You can typecast function addresses and function references to JS
function, e.g. <i>TJSFunction(@SomeProc)</i>, <i>TJSFunction(OnClick)</i>.
Keep in mind that typecasting a method address creates a function wrapper
to bind the Self argument.</li>
</ul>
</div>