Skip to content
Commit f4c39dd6 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: cbi.js: add heuristics to attribute handling in E()



If a given attribute value is a function, register it as event listener,
if it is an object, filter it through JSON.stringify(), else set it
as-is.

This helps to reduce some boiler-plate code when building DOM structures.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 9b20f7ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment