Adopted a saner convention for handling modules that export a single class

This commit is contained in:
Jeremy Ruston
2011-11-27 09:46:02 +00:00
parent c4ab9ec218
commit a2831eb203
7 changed files with 20 additions and 21 deletions

View File

@@ -2,7 +2,7 @@
Functions concerned with parsing representations of tiddlers
*/
var argParser = require("./ArgParser.js"),
var ArgParser = require("./ArgParser.js").ArgParser,
utils = require("./Utils.js");
var tiddlerInput = exports;
@@ -143,7 +143,7 @@ tiddlerInput.parseMetaDataItem = function(field,value) {
result = utils.convertFromYYYYMMDDHHMMSS(value);
break;
case "tags":
var parser = new argParser.ArgParser(value,{noNames: true});
var parser = new ArgParser(value,{noNames: true});
result = parser.getValuesByName("","");
break;
default: