String == Box in JsCommands#ReplaceOption
In JsCommands.scala, in ReplaceOption method, there is a:
8<-----------------------------
(if (value == dflt) "y.selected = true; " else "")
8<-----------------------------
with dflt:Box[String], and so never succed, it should be:
8<-----------------------------
(dflt match { case Full(x) => if (value == x) "y.selected = true; " else "" ; case _ => "" })
8<-----------------------------
or something alike
8<-----------------------------
(if (value == dflt) "y.selected = true; " else "")
8<-----------------------------
with dflt:Box[String], and so never succed, it should be:
8<-----------------------------
(dflt match { case Full(x) => if (value == x) "y.selected = true; " else "" ; case _ => "" })
8<-----------------------------
or something alike
Leave a comment
on 2010-02-06 19:52 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/296/find