Diff for /books/www/corrections.html between versions 1.104 and 1.106

version 1.104, 2003/03/23 18:54:49 version 1.106, 2003/03/23 19:04:58
Line 226  for (var i=0; i<unchex.length; i++) Line 226  for (var i=0; i<unchex.length; i++)
         var sample = Components.classes["@mozilla.org/sound;1"].createInstance();           var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
         sample = sample.QueryInterface(Components.interfaces.nsISound);           sample = sample.QueryInterface(Components.interfaces.nsISound); 
         const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";          const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
        const SND_I_URL           = "nsIURL";        const SND_I_URL = "nsIURL";
        const SND_URL             = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);        const SND_URL = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
        var url                   = new SND_URL();        var url = new SND_URL();
        url.spec                  = 'http://jslib.mozdev.org/test.wav';        url.spec = 'http://jslib.mozdev.org/test.wav';
         sample.play(url);          sample.play(url);
       }         } 
     </script>        </script>  
Line 266  initInstall(                      // ini Line 266  initInstall(                      // ini
   "0.0.1",                        // version of install    "0.0.1",                        // version of install
   1);                             // flags - an optional argument,     1);                             // flags - an optional argument, 
                                   // reserved for future use                                    // reserved for future use
f = getFolder("Chrome");          // specify a target directoryf = getFolder("Chrome");    // specify a target directory
 setPackageFolder(f);  setPackageFolder(f);
addFile(myFile);                  // add software to the installationaddFile(myFile);            // add software to the installation
 registerChrome(  registerChrome(
   PACKAGE | DELAYED_CHROME,       // chrome switch (i.e., type)    PACKAGE | DELAYED_CHROME,       // chrome switch (i.e., type)
   getFolder("Chrome","xFly.jar"), // destination of package    getFolder("Chrome","xFly.jar"), // destination of package
   "content/xFly/");               // location of manifest in package    "content/xFly/");               // location of manifest in package
if (0 == getLastError( ))         // if there have been no errors:if (0 == getLastError( ))       // if there have been no errors:
  performInstall( );              // install "xfly.jar"  performInstall( );            // install "xfly.jar"
else                              // otherwiseelse                          // otherwise
  cancelInstall( );               // cancel the installation.  cancelInstall( );             // cancel the installation.
 </xmp>  </xmp>
   
 </ul>  </ul>
Line 451  install:: $(TARGETS) Line 451  install:: $(TARGETS)
 <li>On page 257: In Example 9-7  <li>On page 257: In Example 9-7
   
 <xmp class="broken">  <xmp class="broken">
        <triple subject="?listitem"  <triple subject="?listitem"
                predicate=" http://xfly.mozdev.org/fly-rdf#location"        predicate=" http://xfly.mozdev.org/fly-rdf#location"
                object="?location"/>        object="?location"/>
 </xmp>  </xmp>
   
 has been changed to  has been changed to
   
 <xmp class="fixed">  <xmp class="fixed">
         <triple subject="?listitem"          <triple subject="?listitem"
                predicate="fly-location#location"        predicate="fly-location#location"
                 object="?location"/>                  object="?location"/>
 </xmp>  </xmp>
   

Removed from v.1.104  
changed lines
  Added in v.1.106


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>