mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Enable JS error reporting.
This commit is contained in:
parent
89772a9e6e
commit
33b9a679d3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user