diff -r d382dacfd73f -r 033ea09379a0 rt/core/src/main/java/org/apidesign/bck2brwsr/core/JavaScriptOnly.java
--- a/rt/core/src/main/java/org/apidesign/bck2brwsr/core/JavaScriptOnly.java Tue Feb 26 16:54:16 2013 +0100
+++ b/rt/core/src/main/java/org/apidesign/bck2brwsr/core/JavaScriptOnly.java Thu Feb 28 20:51:53 2013 +0100
@@ -22,16 +22,17 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-/** Don't include given field or method in generated JavaScript. Rather
- * generate completely independent JavaScript code.
+/** Don't include given method in the generated JavaScript at all. Rather
+ * generate completely independent JavaScript code consisting of
+ * "{@link #name()}" = "{@link #value()}"
.
*
* @author Jaroslav Tulach
*/
@Retention(RetentionPolicy.CLASS)
-@Target({ ElementType.METHOD, ElementType.FIELD })
+@Target({ ElementType.METHOD })
public @interface JavaScriptOnly {
/** name of the variable to assign given value to */
String name() default "";
- /** value to assign to given field */
+ /** value to assign to the {@link #name()} variable */
String value() default "";
}