jsduck: Refactor example iframe to catch uncaught errors
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 8 Mar 2015 17:38:01 +0000 (18:38 +0100)
committerKrinkle <krinklemail@gmail.com>
Wed, 11 Mar 2015 14:22:43 +0000 (14:22 +0000)
commita64a07dfbb6420216e7c3e95498c5c9b63f4636e
tree5de1513e06c2aca528f983a63e4702f9f1ae4b53
parent5d9b67e09ed150f342b17383e53cc0d4be1ba754
jsduck: Refactor example iframe to catch uncaught errors

* Make logging function not depend on 'mw' existing.
* Add window.onerror handler.
* Keep exporting to mw.log because that's what existing examples
  use and is what uses should copy for interoperability with the
  regular runtime.

Change-Id: I2925532035974343125e34084f9ac7c8dd1fa279
maintenance/jsduck/eg-iframe.html