simple-ui-builder
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "simple-ui-builder", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Build user interface like Lego bricks. UI.input(), UI.button(cb), UI.select(arr) etc. For lazy guys as I am.", | ||
@@ -5,0 +5,0 @@ "main": "ui.js", |
@@ -116,3 +116,5 @@ /** | ||
button.style.margin = button.style.margin || params.margin || "10px"; | ||
button.onclick = cb; | ||
button.onclick = function () { | ||
cb(button.id); | ||
}; | ||
params.parent.appendChild(button); | ||
@@ -119,0 +121,0 @@ }; |
17021
401