An application that uses this class [1] minifies to this [2]. In

org.apache.royale.ace.ACEEditor.prototype.set__theme = function(value) {
  this.org_apache_royale_ace_ACEEditor__theme = value;
  var /** @type {Object} */ obj = this.editor;
  obj.setTheme(value);
};

I expected the closure compiler to rename setTheme(), but instead it retained 
it. How did it know to do that? Is it because it’s an Object type?


[1] Apache Paste Bucket<https://paste.apache.org/gg0dy>
[2] Apache Paste Bucket<https://paste.apache.org/4c5f0>

Reply via email to