Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to call a static method without an instance?

$
0
0

How does one call a static class method for Dz* classes?

It works as expected on ECMAScript classes:

Array.isArray([])
Date.now()
String.fromCharCode(65)

But fails for all the DAZ classes:

DzDir.cleanPath("/Path")
DzUri.fromLocalFilename("/Path")
DzVersion.fromString("1.0")

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>