lib/vedeu/editor/item.rb in vedeu-0.6.60 vs lib/vedeu/editor/item.rb in vedeu-0.6.61
- old
+ new
@@ -30,14 +30,14 @@
return nil unless size > 0
if index.nil? || index > size
collection[-1]
- elsif index <= 0
- collection[0]
-
elsif index > 0 && index <= size
collection[index]
+
+ else
+ collection[0]
end
end
protected