@@ 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) { |
@@ 1220-1230 (lines=11) @@ | ||
1217 | }, |
|
1218 | ||
1219 | ||
1220 | next: function(obj, wrap = false){ |
|
1221 | var list = this; |
|
1222 | if (list == null) { |
|
1223 | return null; |
|
1224 | } |
|
1225 | var i = list.indexOf(obj); |
|
1226 | if (i > -1) { |
|
1227 | return (wrap && i >= (list.length - 1)) ? list[0] : list[i + 1]; |
|
1228 | } |
|
1229 | return null; |
|
1230 | }, |
|
1231 | prev: function(obj, wrap = false){ |
|
1232 | var list = this; |
|
1233 | if (list == null) { |