From 76ddaaf56757000824251c7adc1b5777268bd878 2014-12-03 21:46:34 From: Jonathan Frederic Date: 2014-12-03 21:46:34 Subject: [PATCH] Manual fixes --- diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js index 780e845..ce4ed4b 100644 --- a/IPython/html/static/base/js/utils.js +++ b/IPython/html/static/base/js/utils.js @@ -79,9 +79,7 @@ define([ * // -> ['..', 'word', '1', ' ', 'word', '2', '..'] */ var regex_split = function (str, separator, limit) { - /** - * If `separator` is not a regex, use `split` - */ + // If `separator` is not a regex, use `split` if (Object.prototype.toString.call(separator) !== "[object RegExp]") { return split.call(str, separator, limit); } diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index cf468f0..7e4239b 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -580,15 +580,15 @@ define(["widgets/js/manager", var ViewList = function(create_view, remove_view, context) { /** - * * create_view and remove_view are default functions called when adding or removing views - * * create_view takes a model and returns a view or a promise for a view for that model - * * remove_view takes a view and destroys it (including calling `view.remove()`) - * * each time the update() function is called with a new list, the create and remove + * - create_view and remove_view are default functions called when adding or removing views + * - create_view takes a model and returns a view or a promise for a view for that model + * - remove_view takes a view and destroys it (including calling `view.remove()`) + * - each time the update() function is called with a new list, the create and remove * callbacks will be called in an order so that if you append the views created in the * create callback and remove the views in the remove callback, you will duplicate * the order of the list. - * * the remove callback defaults to just removing the view (e.g., pass in null for the second parameter) - * * the context defaults to the created ViewList. If you pass another context, the create and remove + * - the remove callback defaults to just removing the view (e.g., pass in null for the second parameter) + * - the context defaults to the created ViewList. If you pass another context, the create and remove * will be called in that context. */