@@ 837-847 (lines=11) @@ | ||
834 | return list[list.length - 1] == value; |
|
835 | }, |
|
836 | ||
837 | next: function(obj, wrap = false){ |
|
838 | var list = this; |
|
839 | if (list == null) { |
|
840 | return null; |
|
841 | } |
|
842 | var i = list.indexOf(obj); |
|
843 | if (i > -1) { |
|
844 | return (wrap && i >= (list.length - 1)) ? list[0] : list[i + 1]; |
|
845 | } |
|
846 | return null; |
|
847 | }, |
|
848 | prev: function(obj, wrap = false){ |
|
849 | var list = this; |
|
850 | if (list == null) { |
@@ 99-109 (lines=11) @@ | ||
96 | return list[list.length - 1] == value; |
|
97 | }, |
|
98 | ||
99 | next: function(obj, wrap = false){ |
|
100 | var list = this; |
|
101 | if (list == null) { |
|
102 | return null; |
|
103 | } |
|
104 | var i = list.indexOf(obj); |
|
105 | if (i > -1) { |
|
106 | return (wrap && i >= (list.length - 1)) ? list[0] : list[i + 1]; |
|
107 | } |
|
108 | return null; |
|
109 | }, |
|
110 | prev: function(obj, wrap = false){ |
|
111 | var list = this; |
|
112 | if (list == null) { |