This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
misc:oojavascript [2016/10/05 12:41] tschulz [Public method] |
misc:oojavascript [2016/10/06 09:11] (current) tschulz [Public method] |
||
---|---|---|---|
Line 30: | Line 30: | ||
===== Public method ===== | ===== Public method ===== | ||
<file javascript> | <file javascript> | ||
- | var publicTest = this.publicTest; | ||
this.publicTest = function() | this.publicTest = function() | ||
{ console.log("privprintfunc: "+this.local_public); | { console.log("privprintfunc: "+this.local_public); | ||
} | } | ||
+ | var publicTest = this.publicTest; | ||
</file> | </file> | ||