Show More
@@ -79,9 +79,7 b' define([' | |||
|
79 | 79 | * // -> ['..', 'word', '1', ' ', 'word', '2', '..'] |
|
80 | 80 | */ |
|
81 | 81 | var regex_split = function (str, separator, limit) { |
|
82 | /** | |
|
83 | * If `separator` is not a regex, use `split` | |
|
84 | */ | |
|
82 | // If `separator` is not a regex, use `split` | |
|
85 | 83 | if (Object.prototype.toString.call(separator) !== "[object RegExp]") { |
|
86 | 84 | return split.call(str, separator, limit); |
|
87 | 85 | } |
@@ -580,15 +580,15 b' define(["widgets/js/manager",' | |||
|
580 | 580 | |
|
581 | 581 | var ViewList = function(create_view, remove_view, context) { |
|
582 | 582 | /** |
|
583 |
* |
|
|
584 |
* |
|
|
585 |
* |
|
|
586 |
* |
|
|
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 | |
|
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 | |
|
587 | 587 | * callbacks will be called in an order so that if you append the views created in the |
|
588 | 588 | * create callback and remove the views in the remove callback, you will duplicate |
|
589 | 589 | * the order of the list. |
|
590 |
* |
|
|
591 |
* |
|
|
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 | |
|
592 | 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