Skip to main content
 

Can someone write the same list for closure methods?


http://youmightnotneedjquery.com/






 

 boilerplate reduction:

@107106902560384103150 submitted  http://cr/47565620 , which allows goog.ui.Components to do this:

  this.getRequiredElementByClass('classname')

Also goog.ui.Component has a domhelper.  You can get rid of your local domHelper_ vars in most cases and use this.getDomHelper() (and other dom helpers in goog.ui.Component) instead..









 

Compiler experts:

The JS style guide mentions that UPPER_CASE implies @const-- however when I try compiling this code using


  /**  @type{number}
   *@const*/
  var FOO = 1;
  FOO = 2;

it fails, but

  /**@type{number} */
  var FOO = 1;
  FOO = 2;

succeeds

Oddly enough this succeeds as well, which I would expect to work..
  /**@type{number}@const*/
  var FOO = 1;
  FOO = 2;

Any ideas?  These tests were done with http://closure-compiler.appspot.com -- I have not tested using google3 (yet)  Just wanted to make sure that the style guide meshes with the way the compiler treats things..


http://closure-compiler.appspot.com/home






 

lindner opened issue 1 on gli/closure-compiler-maven-plugin http://ff.im/-yIgZn