lib/qooxview/additions.rb in qooxview-1.9.11 vs lib/qooxview/additions.rb in qooxview-1.9.13.pre.10
- old
+ new
@@ -19,10 +19,11 @@
def to_sym!
self.replace(to_sym())
end
def to_frontend(arg = nil)
- collect { |a| a.to_frontend(arg) }.sort { |a, b| a[1]<=>b[1] }
+ collect { |a| a.to_frontend(arg) }.compact.reject{|e| e[1] == nil}.
+ sort { |a, b| a[1]<=>b[1] }
end
def to_s
"[#{join(',')}]"
end