Skip to content

Commit

Permalink
Scope: correct signatures of $eval and $evalAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
jokade committed Aug 2, 2015
1 parent edbd22f commit 546f19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/biz/enef/angulate/Scope.scala
Expand Up @@ -77,15 +77,15 @@ trait Scope extends js.Object {
* @param expression An angular expression to be executed (either a string or a `function(scope)`)
* @param locals Local variables object, useful for overriding values in scope
*/
def $eval(expression: js.Object = js.native, locals: js.Object = js.native) : js.Any = js.native
def $eval(expression: js.Any = js.native, locals: js.Object = js.native) : js.Any = js.native

/**
* Evaluates the expression on the current scope at a later point in time.
*
* @param expression An angular expression to be executed (either a string or a `function(scope)`)
* @param locals Local variables object, useful for overriding values in scope
*/
def $evalAsync(expression: js.Object = js.native, locals: js.Object = js.native) : js.Any = js.native
def $evalAsync(expression: js.Any = js.native, locals: js.Object = js.native) : js.Any = js.native

/**
* Creates a new child scope.
Expand Down

0 comments on commit 546f19f

Please sign in to comment.