Kengo's blog

Technical articles about original projects, JVM, Static Analysis and JavaScript.

Entries from 2015-01-14 to 1 day

When/How to use goog.ui.Component#makeId()

goog.ui.Component#makeId() is a helper function to generate ID for DOM elements. Let's start discussion based on sample component which contains following DOM: <form> <div> <input type="text"> </div> <button type="submit"> </form> To implement createDom() method, we may need to decide ID for each el…