Make selector property of the add and remove class packets optional.

This commit is contained in:
Jonathan Frederic 2013-12-03 22:00:08 +00:00
parent d69e957b9a
commit d371e3772a

View File

@ -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;