(name, id, text, oc)
| 285 | }; |
| 286 | |
| 287 | var createSimpleButton = function(name, id, text, oc) { |
| 288 | var b = null; |
| 289 | var i = null; |
| 290 | |
| 291 | b = crc('input', 'button', name, id, 'bu', true); |
| 292 | b.name = name; |
| 293 | b.key = id; |
| 294 | b.type = "button"; |
| 295 | b.value = text; |
| 296 | |
| 297 | if (!b.inserted && oc) { |
| 298 | b.addEventListener("click", oc); |
| 299 | } |
| 300 | |
| 301 | return b; |
| 302 | }; |
| 303 | |
| 304 | var createButton = function(name, id, text, oc) { |
| 305 | if (Helper.toType(id) === "Object") { |
nothing calls this directly
no test coverage detected
searching dependent graphs…