On Mon, Oct 21, 2013 at 4:19 PM, Matthew Gertner <matt...@salsitasoft.com> wrote: > I'm loading a page into a <browser type="content"> but I want the close() > method to call a function defined in chrome. I tried the obvious: > > window.wrappedJSObject.close() = function() { ... }; > > However, the old close() method is still called (as far as I can tell).
Try removing the parenthesis on the LHS of your assignment? _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform