Sha256: 1dd70012d6c9d8d456e68b403439329e04ea8cf0cedd479ed366cad4a014a909

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
const Cc = Components.classes;
const Ci = Components.interfaces;

var XPCOMCoreCommandLineHandler = function() {
  if (arguments.callee.__singletonInstance__) { return arguments.callee.__singletonInstance__; };
  this.wrappedJSObject = this;
  arguments.callee.__singletonInstance__ = this;
};

XPCOMCoreCommandLineHandler.prototype = {
  args: [],
  classDescription: "XPCOMCore Command Line Handler",
  contractID: "@conflagrationjs.org/xpcomcore/generic-command-line-handler-clh;1",
  classID: Components.ID("{b5730df0-b859-11de-8a39-0800200c9a66}"),
  helpInfo: "",
  QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsICommandLineHandler]),
  _xpcom_categories: [{category: "command-line-handler", entry: "a-xpcomcore"}],
  
  handle: function(cmdLine) {
    for (var i = 0; i < cmdLine.length; i++) { this.args.push(cmdLine.getArgument(i)); }
  }
  
};

NSGetModule = function(compMgr, fileSpec) {
  return XPCOMUtils.generateModule([XPCOMCoreCommandLineHandler]);
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xpcomcore-rubygem-0.6.4 xpcomcore/components/XPCOMCoreCLH.js
xpcomcore-rubygem-0.6.3 xpcomcore/components/XPCOMCoreCLH.js
xpcomcore-rubygem-0.6.2 xpcomcore/components/XPCOMCoreCLH.js
xpcomcore-rubygem-0.6.0 xpcomcore/components/XPCOMCoreCLH.js