Is there currently a better way to handle optional JsMembers than this:
def onLoad(id: String, plugins: Seq[Plugin], additionalJs:
Box[JsMember] = Empty): NodeSeq = {
if (additionalJs.isEmpty)
Jq(selector) ~> JsFunc("jstree", treeJson)
else
Jq(selector) ~> additionalJs.open_! ~> JsFunc("jstree", treeJson)
If not, perhaps have ~> handle Option[JsMember] as well. Dunno what
the implications are though.
Thoughts?
/Jeppe
Thoughts?
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Sure, both seem within my capabilities :-)
/Jeppe