1.1 --- a/rt/core/src/main/java/org/apidesign/bck2brwsr/core/JavaScriptOnly.java Tue Feb 26 16:54:16 2013 +0100
1.2 +++ b/rt/core/src/main/java/org/apidesign/bck2brwsr/core/JavaScriptOnly.java Wed Jul 16 07:57:22 2014 +0200
1.3 @@ -22,16 +22,17 @@
1.4 import java.lang.annotation.RetentionPolicy;
1.5 import java.lang.annotation.Target;
1.6
1.7 -/** Don't include given field or method in generated JavaScript. Rather
1.8 - * generate completely independent JavaScript code.
1.9 +/** Don't include given method in the generated JavaScript at all. Rather
1.10 + * generate completely independent JavaScript code consisting of
1.11 + * <code>"{@link #name()}" = "{@link #value()}"</code>.
1.12 *
1.13 * @author Jaroslav Tulach <jtulach@netbeans.org>
1.14 */
1.15 @Retention(RetentionPolicy.CLASS)
1.16 -@Target({ ElementType.METHOD, ElementType.FIELD })
1.17 +@Target({ ElementType.METHOD })
1.18 public @interface JavaScriptOnly {
1.19 /** name of the variable to assign given value to */
1.20 String name() default "";
1.21 - /** value to assign to given field */
1.22 + /** value to assign to the {@link #name()} variable */
1.23 String value() default "";
1.24 }