Enable JS error reporting.

This commit is contained in:
Paulo Gustavo Veiga 2015-04-09 23:37:39 -03:00
parent 89772a9e6e
commit 33b9a679d3

View File

@ -97,8 +97,7 @@ function buildDesigner(options) {
}
};
// @Todo: Remove this after all is fixed.
// window.onerror = onerrorFn;
window.onerror = onerrorFn;
// Configure default persistence manager ...
var persistence;
@ -121,7 +120,7 @@ function buildDesigner(options) {
// If a node has focus, focus can be move to another node using the keys.
designer._cleanScreen = function () {
menu.clear()
menu.clear();
};
}
@ -156,7 +155,15 @@ function loadDesignerOptions(jsonConf) {
height: parseInt(window.innerHeight - 70), // Footer and Header
width: parseInt(window.innerWidth)
};
result = {readOnly:false, zoom:0.85, saveOnLoad:true, size:containerSize, viewPort:viewPort, container:'mindplot', locale:'en'};
result = {
readOnly: false,
zoom: 0.85,
saveOnLoad: true,
size: containerSize,
viewPort: viewPort,
container: 'mindplot',
locale: 'en'
};
}
return result;
}