##// END OF EJS Templates
Manual fixes
Jonathan Frederic -
Show More
@@ -79,9 +79,7 b' define(['
79 * // -> ['..', 'word', '1', ' ', 'word', '2', '..']
79 * // -> ['..', 'word', '1', ' ', 'word', '2', '..']
80 */
80 */
81 var regex_split = function (str, separator, limit) {
81 var regex_split = function (str, separator, limit) {
82 /**
82 // If `separator` is not a regex, use `split`
83 * If `separator` is not a regex, use `split`
84 */
85 if (Object.prototype.toString.call(separator) !== "[object RegExp]") {
83 if (Object.prototype.toString.call(separator) !== "[object RegExp]") {
86 return split.call(str, separator, limit);
84 return split.call(str, separator, limit);
87 }
85 }
@@ -580,15 +580,15 b' define(["widgets/js/manager",'
580
580
581 var ViewList = function(create_view, remove_view, context) {
581 var ViewList = function(create_view, remove_view, context) {
582 /**
582 /**
583 * * create_view and remove_view are default functions called when adding or removing views
583 * - create_view and remove_view are default functions called when adding or removing views
584 * * create_view takes a model and returns a view or a promise for a view for that model
584 * - create_view takes a model and returns a view or a promise for a view for that model
585 * * remove_view takes a view and destroys it (including calling `view.remove()`)
585 * - remove_view takes a view and destroys it (including calling `view.remove()`)
586 * * each time the update() function is called with a new list, the create and remove
586 * - each time the update() function is called with a new list, the create and remove
587 * callbacks will be called in an order so that if you append the views created in the
587 * callbacks will be called in an order so that if you append the views created in the
588 * create callback and remove the views in the remove callback, you will duplicate
588 * create callback and remove the views in the remove callback, you will duplicate
589 * the order of the list.
589 * the order of the list.
590 * * the remove callback defaults to just removing the view (e.g., pass in null for the second parameter)
590 * - the remove callback defaults to just removing the view (e.g., pass in null for the second parameter)
591 * * the context defaults to the created ViewList. If you pass another context, the create and remove
591 * - the context defaults to the created ViewList. If you pass another context, the create and remove
592 * will be called in that context.
592 * will be called in that context.
593 */
593 */
594
594
General Comments 0
You need to be logged in to leave comments. Login now