react-script
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -97,3 +97,8 @@ // Generated by CoffeeScript 1.9.1 | ||
case "function": | ||
elementClass = args[0], attrArgs = args[1], childArgs = 3 <= args.length ? slice.call(args, 2) : []; | ||
if (is_plainish_object(args[1])) { | ||
elementClass = args[0], attrArgs = args[1], childArgs = 3 <= args.length ? slice.call(args, 2) : []; | ||
} else { | ||
elementClass = args[0], childArgs = 2 <= args.length ? slice.call(args, 1) : []; | ||
attrArgs = null; | ||
} | ||
return createElement(elementClass, { | ||
@@ -108,3 +113,3 @@ attrArgs: attrArgs, | ||
selector = args[0], childArgs = 2 <= args.length ? slice.call(args, 1) : []; | ||
attrArgs = {}; | ||
attrArgs = null; | ||
} | ||
@@ -111,0 +116,0 @@ tagName = "div"; |
{ | ||
"name": "react-script", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Elegant DSL for React", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
"prepublish": "coffee -c -o lib/ react-script.coffee", | ||
"test": "mocha --compilers coffee:coffee-script/register --require spec/helper spec/tests/*" | ||
"test": "mocha --compilers coffee:coffee-script/register --require spec/helpers spec/tests/*" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
16987
132