[Jslib] problems with Dir from jslib version 0.1.105 on Mozilla 1.5

Pete Collins pete at mozdev.org
Wed Dec 3 14:02:01 EST 2003


Try:

-   var oireachtas = Dir(  "/tmp/x" );

+  var oireachtas = new Dir(  "/tmp/x" );


--pete


> But all I get is :
> Error: this.initPath is not a function
> Source File: chrome://jslib/content/io/dir.js Line: 85
> 
> and the output :
> chrome://jslib/content/io/dir.js
> chrome://jslib/content/io/filesystem.js
> *** load: filesystem.js OK
> *** load: dir.js OK
> addyears
> addyears 2
> Document chrome://sfi/content/a4.xul loaded successfully
> 
> I also tried with jslib version 0.1.95 and got the same error message.
> 
> Any help appreciated,
> CPH
> 
> _______________________________________________
> Jslib mailing list
> Jslib at mozdev.org
> http://mozdev.org/mailman/listinfo/jslib
> 


-- 
Pete Collins
www.mozdev.org
www.mozdevgroup.com



More information about the Jslib mailing list