Comparing version 3.0.2 to 3.0.3
@@ -77,3 +77,3 @@ var assert = require('assert'); | ||
var alreadyCreated = false; | ||
function createElement (tag, selectorStr, attr, children) { | ||
@@ -89,4 +89,9 @@ var selector = null; | ||
if (typeof selectorStr === 'string') { | ||
children = NOOP; | ||
selector = parseCssSelector(selectorStr); | ||
if (typeof attr === 'object') { | ||
children = NOOP; | ||
} else { | ||
children = attr; | ||
attr = {}; | ||
} | ||
} else { | ||
@@ -93,0 +98,0 @@ children = attr; |
{ | ||
"name": "coffeex", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Coffee DSL for React Virtual DOM instead of JSX", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9142
211