Returns the current value of this Binding and marks the current @dom
method depend on this Binding.
Returns the current value of this Binding and marks the current @dom
method depend on this Binding.
Each time the value changes, in the current @dom
method,
all code after the current bind
expression will be re-evaluated if the current @dom
method is watching.
However, code in current @dom
method and before the current bind
expression will not be re-evaluated.
The above rule is not applied to DOM nodes created by XHTML literal.
A bind
expression under a DOM node does not affect siblings and parents of that node.
This method must be invoked inside a @dom
method body or a Binding { ... }
block..
Disable automatic recalculation.
Returns the current value of this Binding
Returns the current value of this Binding
This method must not be invoked inside a @dom
method body or a Binding { ... }
block..
Enable automatic recalculation.
Enable automatic recalculation.
You may invoke this method more than once. Then, when you want to disable automatic recalculation, you must invoke unwatch same times as the number of calls to this method.
A wrapper that wraps a scala.scalajs.js.Thenable to a com.thoughtworks.binding.Binding.
Author:
杨博 (Yang Bo) <[email protected]>
This JsPromiseBinding will cache the result of the
thenable
. Given a scala.scalajs.js.Thenable that will be delay executed.The execution will not be performed right now.
When there are multiple usages of
jsPromiseBinding
, each usage should be triggered with the same value.And each usage should be triggered once and only once.