Fix exception on changing central topic shape.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-08 00:30:27 -03:00
parent 0f2af2cb74
commit 0660c7e8c3
6 changed files with 45 additions and 30 deletions

View File

@@ -22,7 +22,7 @@
<script type="text/javascript">
var mapId = 'welcome-reloaded';
var mapId = 'welcome';
$(document).addEvent('loadcomplete', function(resource) {
var options = loadDesignerOptions();
var designer = buildDesigner(options);

View File

@@ -30,17 +30,12 @@ function buildDesigner(options) {
window.waitDialog.destroy();
});
// Register error handlers ...
designer.addEvent('loadError', function(e) {
window.onerror = function()
{
window.waitDialog.close();
window.waitDialog.destroy();
errorDialog.show();
console.log(e);
});
window.onerror = function()
{
errorDialog.show();
};
// Configure default persistence manager ...