This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class.js: A class factory. | |
* (http://vpalos.com/1194/js-classes-for-the-masses/) | |
*/ | |
function Class(members) { | |
// setup proxy | |
var Proxy = function() {}; | |
Proxy.prototype = (members.base || Class).prototype; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Command-line options parser (http://valeriu.palos.ro/1026/). | |
Copyright 2011 Valeriu Paloş (valeriu@palos.ro). All rights reserved. | |
Released as Public Domain. | |
Expects the "schema" array with options definitions and produces the | |
"options" object and the "arguments" array, which will contain all | |
non-option arguments encountered (including the script name and such). | |
Syntax: | |
[«short», «long», «attributes», «brief», «callback»] |
NewerOlder