##// END OF EJS Templates
Add an optional `default` argument to trait metadata get, like the Python dict's .get() default argument...
Add an optional `default` argument to trait metadata get, like the Python dict's .get() default argument After this, trait_metadata('traitname', 'metadata_key', DEFAULT) will return DEFAULT if the metadata key is not set. DEFAULT defaults to None, like the existing behavior and like the python dict .get() behavior.

File last commit:

r17204:b67653df
r17673:1f9294c2
Show More
loginmain.js
12 lines | 383 B | application/javascript | JavascriptLexer
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
var ipython = ipython || {};
require(['base/js/page'], function(page) {
var page_instance = new page.Page();
$('button#login_submit').addClass("btn btn-default");
page_instance.show();
$('input#password_input').focus();
ipython.page = page_instance;
});