##// END OF EJS Templates
use `window.onbeforeunload=` for nav-away warning...
use `window.onbeforeunload=` for nav-away warning Firefox 22 broke `$(window).on("beforeunload")` somehow, for some reason, resulting in always showing a dialog, regardless of the function's return value. The only fix I could find was resorting to the basic low-level API.

File last commit:

r11024:4571a5fb
r11111:47587ae4
Show More
__main__.py
14 lines | 491 B | text/x-python | PythonLexer
# encoding: utf-8
"""Terminal-based IPython entry point.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2012, IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
from IPython.terminal.ipapp import launch_new_instance
launch_new_instance()