Skip to content

Commit

Permalink
Tweak to find out the time the editors are ready
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Feb 19, 2011
1 parent ee3f469 commit ede87a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/editors/editors.js
Expand Up @@ -33,6 +33,7 @@ var editorsReady = setInterval(function () {
clearInterval(editorsReady);
editors.ready = true;
if (typeof editors.onReady == 'function') editors.onReady();
$(document).trigger('jsbinReady');
}
}, 100);

Expand All @@ -52,7 +53,6 @@ function setupEditor(panel) {
var e = editors[panel],
focusedPanel = sessionStorage.getItem('panel');

e.ready = true;
e.wrapping.style.position = 'static';
e.wrapping.style.height = 'auto';

Expand All @@ -75,6 +75,7 @@ function setupEditor(panel) {
}

populateEditor(panel);
e.ready = true;

if (focusedPanel == panel || focusedPanel == null && panel == 'javascript') {
e.focus();
Expand Down

0 comments on commit ede87a1

Please sign in to comment.