Permalink
Browse files

Add := method to JsVar.

  • Loading branch information...
1 parent 1ba984b commit 3a093832b2b98aa3b7d539b26e18a95ee94a43f8 @pr1001 pr1001 committed Jul 18, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 web/webkit/src/main/scala/net/liftweb/http/js/JsCommands.scala
@@ -480,6 +480,13 @@ object JE {
def -&(right: String) = JsVar(varName, (right :: andThen.toList.reverse).reverse :_*)
def apply(params: JsExp*) = Call(toJsCmd, params :_*)
+
+ /**
+ * Assign the given value to the Javascript variable.
+ *
+ * @see JsExp.===
+ */
+ def :=(right: JsExp) = ===(right)
}
/**

0 comments on commit 3a09383

Please sign in to comment.