Browse files

Worked around a new problem with qx.data.SingleValueBinding.removeAll…

…Bindings()

git-svn-id: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib@20868 09f7d036-9b2a-0410-8fbe-9cff4eb17569
  • Loading branch information...
1 parent bbe76cb commit 325fc6fa96474b2453e0f5726f2985321ab17dbd cboulanger committed Nov 23, 2010
Showing with 14 additions and 4 deletions.
  1. +14 −4 source/class/dialog/Form.js
View
18 source/class/dialog/Form.js
@@ -220,13 +220,23 @@ qx.Class.define("dialog.Form",
*/
if ( this._formController )
{
- this.getModel().removeAllBindings();
- this._formController.dispose();
+ // work around a problem with removeAllBindings
+ try
+ {
+ this.getModel().removeAllBindings();
+ this._formController.dispose();
+ }
+ catch(e){}
}
if ( this._form )
{
- this._form.getValidationManager().removeAllBindings();
- this._form.dispose();
+ // work around a problem with removeAllBindings
+ try
+ {
+ this._form.getValidationManager().removeAllBindings();
+ this._form.dispose();
+ }
+ catch(e){}
}
this._formContainer.removeAll();

0 comments on commit 325fc6f

Please sign in to comment.