Skip to content

Commit

Permalink
Avoid caching the inner reference for window in CKEDITOR.document, be…
Browse files Browse the repository at this point in the history
…cause it is mutable in IE+Quirks and may represent a object that is different from the current window.
  • Loading branch information
fredck authored and oleq committed Jun 5, 2013
1 parent bf6ca10 commit af6a8af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/dom/document.js
Expand Up @@ -235,11 +235,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, {
* @returns {CKEDITOR.dom.window} The window object.
*/
getWindow: function() {
var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );

return ( this.getWindow = function() {
return win;
})();
return new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );
},

/**
Expand Down

0 comments on commit af6a8af

Please sign in to comment.