home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / toolkit.jar / content / global / nsJSSupportsUtils.js < prev    next >
Encoding:
JavaScript  |  2001-04-05  |  1.6 KB  |  47 lines

  1. /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public
  4.  * License Version 1.1 (the "License"); you may not use this file
  5.  * except in compliance with the License. You may obtain a copy of
  6.  * the License at http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the License is distributed on an "AS
  9.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.  * implied. See the License for the specific language governing
  11.  * rights and limitations under the License.
  12.  *
  13.  * The Original Code is mozilla.org code.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation.  Portions created by Netscape are
  17.  * Copyright (C) 1998 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Original Author:
  21.  *   Ben Matthew Goodger <ben@netscape.com>
  22.  *
  23.  * Contributor(s): 
  24.  */
  25.  
  26. var nsJSSupportsUtils = {
  27.  
  28.   createSupportsArray: function ()
  29.     {
  30.       return Components.classes["@mozilla.org/supports-array;1"]
  31.                        .createInstance(Components.interfaces.nsISupportsArray);
  32.     },
  33.  
  34.   createSupportsWString: function ()
  35.     {  
  36.       return Components.classes["@mozilla.org/supports-wstring;1"]
  37.                        .createInstance(Components.interfaces.nsISupportsWString);
  38.     },
  39.     
  40.   createSupportsString: function ()
  41.     {
  42.       return Components.classes["@mozilla.org/supports-string;1"]
  43.                        .createInstance(Components.interfaces.nsISupportsString);
  44.     }                                                 
  45.  
  46. };
  47.