diff options
Diffstat (limited to 'lib/styles.js')
| -rw-r--r-- | lib/styles.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/styles.js b/lib/styles.js deleted file mode 100644 index 737bdcb..0000000 --- a/lib/styles.js +++ /dev/null @@ -1,28 +0,0 @@ -var _ = require("underscore"); - -exports.topLevelElement = topLevelElement; -exports.elements = elements; -exports.element = element; - -function topLevelElement(tagName, attributes) { - return elements([element(tagName, attributes, {fresh: true})]); -} - -function elements(elementStyles) { - return elementStyles.map(function(elementStyle) { - if (_.isString(elementStyle)) { - return element(elementStyle); - } else { - return elementStyle; - } - }); -} - -function element(tagName, attributes, options) { - options = options || {}; - return { - tagName: tagName, - attributes: attributes || {}, - fresh: options.fresh - }; -} |
