Skip to content

Commit

Permalink
Merge pull request #77 from offerijns/master
Browse files Browse the repository at this point in the history
Add objectEquality parameter to $watch method
  • Loading branch information
jokade committed Aug 3, 2015
2 parents 546f19f + 0d5bef7 commit b055850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/biz/enef/angulate/Scope.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ trait Scope extends js.Object {
* @param watchExpression Called on every `\$digest()` and should return the value that should be watched
* @param listener Callback function which is only executed when the `watchExpression` has changed.
* Called with three arguments: new value, old value, current scope
* @param objectEquality Compare for object equality using angular.equals instead of comparing for reference equality
* @return de-registration function
*/
def $watch(watchExpression: js.Any, listener: js.Function = null) : js.Function = js.native
def $watch(watchExpression: js.Any, listener: js.Function = null, objectEquality: Boolean = false) : js.Function = js.native

/**
* Registers a listener callback to be executed whenever the `watchExpression` changes.
Expand Down

0 comments on commit b055850

Please sign in to comment.