Changeset 183
- Timestamp:
- 05/20/05 06:11:44 (8 years ago)
- Files:
-
- 1 modified
-
trunk/dialog.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dialog.js
r182 r183 59 59 }; 60 60 capwin(window); 61 // capture other frames 62 for (var i = 0; i < window.frames.length; capwin(window.frames[i++])); 61 // capture other frames, note the exception trapping, this is because 62 // we are not permitted to add events to frames outside of the current 63 // window's domain. 64 for (var i = 0; i < window.frames.length; i++) {try { capwin(window.frames[i]); } catch(e) { } }; 63 65 // make up a function to be called when the Dialog ends. 64 66 Dialog._return = function (val) { … … 68 70 relwin(window); 69 71 // capture other frames 70 for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));72 for (var i = 0; i < window.frames.length; i++) { try { relwin(window.frames[i]); } catch(e) { } }; 71 73 Dialog._modal = null; 72 74 };
