##// END OF EJS Templates
tweak history prefix search (up/^p) in qtconsole...
tweak history prefix search (up/^p) in qtconsole moving the cursor around the line could result in weird inconsistencies in the prefix. This simplifies the logic by always using the cursor position to set the history prefix, and better determine when the history prefix has actually changed.

File last commit:

r5479:0168dc21
r9205:ef8c14cd
Show More
namespace.js
30 lines | 833 B | application/javascript | JavascriptLexer
Brian E. Granger
More review changes....
r4609 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
Brian E. Granger
Implemented module and namespace pattern in js notebook.
r4352 var IPython = IPython || {};
IPython.namespace = function (ns_string) {
var parts = ns_string.split('.'),
parent = IPython,
i;
// String redundant leading global
if (parts[0] === "IPython") {
parts = parts.slice(1);
}
for (i=0; i<parts.length; i+=1) {
// Create property if it doesn't exist
if (typeof parent[parts[i]] === "undefined") {
Stefan van der Walt
Clean up javascript based on js2-mode feedback.
r5479 parent[parts[i]] = {};
Brian E. Granger
Implemented module and namespace pattern in js notebook.
r4352 }
}
return parent;
};
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349