1.1 --- a/boot/src/main/java/org/apidesign/html/boot/spi/Fn.java Sun Mar 09 21:13:33 2014 +0100
1.2 +++ b/boot/src/main/java/org/apidesign/html/boot/spi/Fn.java Sun Mar 09 22:37:58 2014 +0100
1.3 @@ -203,10 +203,6 @@
1.4 return FnContext.activate(p);
1.5 }
1.6
1.7 - public void invokeLater(Object thiz, Object... args) throws Exception {
1.8 - invoke(this, args);
1.9 - }
1.10 -
1.11 /** Invokes the defined function with specified <code>this</code> and
1.12 * appropriate arguments.
1.13 *
1.14 @@ -217,6 +213,20 @@
1.15 * @throws Exception if something goes wrong, as exception may be thrown
1.16 */
1.17 public abstract Object invoke(Object thiz, Object... args) throws Exception;
1.18 +
1.19 + /** Invokes the defined function with specified <code>this</code> and
1.20 + * appropriate arguments asynchronously. The invocation may be
1.21 + * happen <em>"later"</em>.
1.22 + *
1.23 + * @param thiz the meaning of <code>this</code> inside of the JavaScript
1.24 + * function - can be <code>null</code>
1.25 + * @param args arguments for the function
1.26 + * @throws Exception if something goes wrong, as exception may be thrown
1.27 + * @since 0.7.6
1.28 + */
1.29 + public void invokeLater(Object thiz, Object... args) throws Exception {
1.30 + invoke(this, args);
1.31 + }
1.32
1.33 /** Provides the function implementation access to the presenter provided
1.34 * in {@link #Fn(org.apidesign.html.boot.spi.Fn.Presenter) the constructor}.