Final touches?

This commit is contained in:
Jonathan Frederic 2014-02-27 16:09:00 -08:00
parent c5fb037e41
commit bfc51c2a29
2 changed files with 11 additions and 12 deletions

View File

@ -115,7 +115,6 @@ var IPython = (function (IPython) {
} }
}; };
/** /**
* Subclasses can implement override bind_events. * Subclasses can implement override bind_events.
* Be carefull to call the parent method when overwriting as it fires event. * Be carefull to call the parent method when overwriting as it fires event.

View File

@ -751,17 +751,17 @@ var IPython = (function (IPython) {
}; };
e.on('focusin', handle_focus); e.on('focusin', handle_focus);
e.on('focusout', handle_blur); e.on('focusout', handle_blur);
// TODO: Very strange. The focusout event does not seem fire for the // // TODO: Very strange. The focusout event does not seem fire for the
// bootstrap textboxes on FF25&26... // // bootstrap textboxes on FF25&26...
e.find('input').blur(handle_blur); // e.find('input').blur(handle_blur);
e.on('DOMNodeInserted', function (event) { // e.on('DOMNodeInserted', function (event) {
var target = $(event.target); // var target = $(event.target);
if (target.is('input')) { // if (target.is('input')) {
target.blur(handle_blur); // target.blur(handle_blur);
} else { // } else {
target.find('input').blur(handle_blur); // target.find('input').blur(handle_blur);
} // }
}); // });
// There are times (raw_input) where we remove the element from the DOM before // There are times (raw_input) where we remove the element from the DOM before
// focusout is called. In this case we bind to the remove event of jQueryUI, // focusout is called. In this case we bind to the remove event of jQueryUI,
// which gets triggered upon removal, iff it is focused at the time. // which gets triggered upon removal, iff it is focused at the time.