diff --git a/core/dom/document.js b/core/dom/document.js index 9ba43d927f4..425acb8d744 100644 --- a/core/dom/document.js +++ b/core/dom/document.js @@ -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 ); }, /**