|
@@ -602,8 +602,11 @@ class Ide extends hide.tools.IdeData {
|
|
var showErrors = true;
|
|
var showErrors = true;
|
|
var errorWindow :Element = null;
|
|
var errorWindow :Element = null;
|
|
override function error( e : Dynamic ) {
|
|
override function error( e : Dynamic ) {
|
|
- if( showErrors && !js.Browser.window.confirm(e) )
|
|
|
|
- showErrors = false;
|
|
|
|
|
|
+ if( showErrors ) {
|
|
|
|
+ onIdeError(e);
|
|
|
|
+ if( !js.Browser.window.confirm(e) )
|
|
|
|
+ showErrors = false;
|
|
|
|
+ }
|
|
|
|
|
|
if (!showErrors) {
|
|
if (!showErrors) {
|
|
if (errorWindow == null) {
|
|
if (errorWindow == null) {
|
|
@@ -1633,6 +1636,8 @@ class Ide extends hide.tools.IdeData {
|
|
return js.Browser.window.prompt(text, defaultValue);
|
|
return js.Browser.window.prompt(text, defaultValue);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static dynamic function onIdeError(e: Dynamic) {}
|
|
|
|
+
|
|
public static var inst : Ide;
|
|
public static var inst : Ide;
|
|
|
|
|
|
static function main() {
|
|
static function main() {
|