Comparing version 0.0.3 to 0.0.9
@@ -19,3 +19,3 @@ "use strict"; | ||
function app (elem, observ, render) { | ||
function app (elem, observ, render, renderOptions) { | ||
@@ -26,3 +26,3 @@ if (!elem) { | ||
var target = start(render, observ); | ||
var target = start(render, observ, renderOptions); | ||
elem.appendChild(target.dom); | ||
@@ -34,3 +34,4 @@ | ||
function start (render, observ) { | ||
function start (render, observ, renderOptions) { | ||
var virtualTree; | ||
@@ -41,3 +42,3 @@ var resultsNode; | ||
virtualTree = render(observ); | ||
resultsNode = nuclear.createElement(virtualTree); | ||
resultsNode = nuclear.createElement(virtualTree, renderOptions); | ||
target.dom = resultsNode; | ||
@@ -44,0 +45,0 @@ target.update = function () { |
{ | ||
"name": "nuclear.js", | ||
"version": "0.0.3", | ||
"version": "0.0.9", | ||
"description": "Modular small front end framework", | ||
@@ -13,4 +13,5 @@ "main": "index.js", | ||
"browser": "run-browser test/index.js", | ||
"cover": "istanbul cover --report html --print detail ./test/index.js", | ||
"view-cover": "istanbul report html && opn coverage/index.html" | ||
"cover": "istanbul cover tape ./test/runner.js", | ||
"open:cover": "open coverage/lcov-report/index.html", | ||
"test:watch": "nodemon test/runner.js" | ||
}, | ||
@@ -48,4 +49,6 @@ "repository": { | ||
"tap-spec": "^4.0.2", | ||
"tape": "^4.0.0" | ||
"tape": "^4.0.0", | ||
"jsdom": "^5.6.1", | ||
"nodemon": "^1.3.8" | ||
} | ||
} |
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
6822
9
117
8