Skip to content

Commit

Permalink
Add := method to JsVar.
Browse files Browse the repository at this point in the history
  • Loading branch information
pr1001 committed Jul 18, 2011
1 parent 1ba984b commit 3a09383
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -480,6 +480,13 @@ object JE {
def -&(right: String) = JsVar(varName, (right :: andThen.toList.reverse).reverse :_*) def -&(right: String) = JsVar(varName, (right :: andThen.toList.reverse).reverse :_*)


def apply(params: JsExp*) = Call(toJsCmd, params :_*) def apply(params: JsExp*) = Call(toJsCmd, params :_*)

/**
* Assign the given value to the Javascript variable.
*
* @see JsExp.===
*/
def :=(right: JsExp) = ===(right)
} }


/** /**
Expand Down

0 comments on commit 3a09383

Please sign in to comment.