Revert "Passed "store" to the other parser constructors"

This reverts commit 017be8f4ff.
This commit is contained in:
Jeremy Ruston
2012-02-11 20:02:35 +00:00
parent 017be8f4ff
commit c100b434f9
7 changed files with 68 additions and 58 deletions

View File

@@ -42,7 +42,7 @@ var utils = require("./Utils.js");
Constructs an HTMLParseTree from a tree of nodes. A single node or an array of nodes can be passed.
As a shortcut, the constructor can be called as an ordinary function without the new keyword, in which case
it by default returns the `text/html` rendering of the tree.
it automatically returns the `text/html` rendering of the tree.
*/
var HTML = function(tree,type) {
if(this instanceof HTML) {
@@ -110,17 +110,6 @@ HTML.macro = function(name,params,children,dependencies) {
return m;
};
/*
Static method to construct a label
*/
HTML.label = function(type,value,classes) {
classes = (classes || []).slice(0);
classes.push("label");
return HTML.elem("span",{
"class": classes
},value);
};
/*
Static method to construct a split label
*/