mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 23:30:43 +02:00
pastojs: docs updated
git-svn-id: trunk@46818 -
This commit is contained in:
parent
aae5c452cb
commit
edd10be1e2
@ -370,15 +370,18 @@ End.
|
|||||||
<pre>rtl.module('<unitname>',
|
<pre>rtl.module('<unitname>',
|
||||||
['system',...other used units of the interface section...],
|
['system',...other used units of the interface section...],
|
||||||
function(){
|
function(){
|
||||||
|
var $mod = this;
|
||||||
|
var $impl = $mod.$impl;
|
||||||
[interface section]
|
[interface section]
|
||||||
this.$init=function(){
|
$mod.$implcode = function(){
|
||||||
|
[implementation section]
|
||||||
|
}
|
||||||
|
$mod.$init = function(){
|
||||||
[initialization section]
|
[initialization section]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
[...used units of the implementation section],
|
[...used units of the implementation section]
|
||||||
function(){
|
};
|
||||||
[implementation section]
|
|
||||||
}};
|
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -429,18 +432,16 @@ function(){
|
|||||||
this.MyIntfProc = function(){
|
this.MyIntfProc = function(){
|
||||||
$impl.dImpl = $mod.dIntf;
|
$impl.dImpl = $mod.dIntf;
|
||||||
};
|
};
|
||||||
this.$init = function() {
|
$mod.$implcode = function(){
|
||||||
};
|
|
||||||
},
|
|
||||||
["Classes"],
|
|
||||||
function(){
|
|
||||||
var $mod = this;
|
|
||||||
var $impl = $mod.$impl;
|
|
||||||
$impl.dImpl = 0.0;
|
$impl.dImpl = 0.0;
|
||||||
$impl.MyImplProc = function() {
|
$impl.MyImplProc = function() {
|
||||||
$impl.dImpl = $mod.dIntf;
|
$impl.dImpl = $mod.dIntf;
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
$mod.$init = function() {
|
||||||
|
};
|
||||||
|
},
|
||||||
|
["Classes"]);
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user