mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Make selector property of the add and remove class packets optional.
This commit is contained in:
parent
d69e957b9a
commit
d371e3772a
@ -153,6 +153,10 @@ define(["components/underscore/underscore-min",
|
||||
case 'add_class':
|
||||
case 'remove_class':
|
||||
var selector = msg.content.data.selector;
|
||||
if (selector === undefined) {
|
||||
selector = '';
|
||||
}
|
||||
|
||||
var class_list = msg.content.data.class_list;
|
||||
this._execute_views_method(method, selector, class_list);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user