You'll have to add this method to externs.js, otherwise it'll break when compiled.