Skip to content

Commit

Permalink
Refactored 5E-OGL trap theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazra committed Sep 18, 2016
1 parent 8561905 commit bbdf0e7
Show file tree
Hide file tree
Showing 7 changed files with 1,193 additions and 207 deletions.
13 changes: 9 additions & 4 deletions HtmlBuilder/1.0/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ var HtmlBuilder = (() => {

/**
* Appends a child element to this one.
* @param {string} tag
* @param {(HtmlBuilder|string)} content
* @param {object} attrs
* @param {(HtmlBuilder|string)} tag
* The tag or pre-made element to append.
* @param {(HtmlBuilder|string)} [content]
* If tag is a string, this is the inner content of the element.
* @param {object} [attrs]
* If tag is a string, this is the set of its element's attributes.
* @return {HtmlBuilder}
* The child element.
*/
append(tag, content, attrs) {
let elem = new HtmlBuilder(tag, content, attrs);
let elem = tag;
if(_.isString(elem))
elem = new HtmlBuilder(tag, content, attrs);
this._children.push(elem);
return elem;
}
Expand Down
Loading

0 comments on commit bbdf0e7

Please sign in to comment.