rem: /* Rather dirty polling loop to see if Mozilla is done doing it's initialization thing so design mode can be set. */ this._designModeSetAttempts++; if (this._designModeSetAttempts > 25) { alert(_('Couldn\'t set design mode. Kupu will not work on this browser.')); return; }; 
add: /* Try to set design mode, but if we fail then just wait for a * resize event. */ 
context:     this._setDesignModeWhenReady = function() {        /* Rather dirty polling loop to see if Mozilla is done doing it's            initialization thing so design mode can be set.        */        this._designModeSetAttempts++;        if (this._designModeSetAttempts > 25) {            alert(_('Couldn\'t set design mode. Kupu will not work on this browser.'));            return;        };        var success = false;        try {            this._setDesignMode();            success = true;        } catch (e) {            // register a function to the timer_instance because             // window.setTimeout can't refer to 'this'...            timer_instance.registerFunction(this, this._setDesignModeWhenReady, 100);        };        if (success) {            // provide an 'afterInit' method on KupuEditor.prototype            // for additional bootstrapping (after editor init)            if (this.afterInit) {                this.afterInit();            };        };    };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/d75cadad01b4329ee80f12f78769bee9e14f87f1/kupueditor.js/clean/kupu/common/kupueditor.js