Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change null XML check to match jQuery's "no children found" empty list

  • Loading branch information...
commit 821d5ad5479db9ddeb6baf6a93a7e1ffe9fc1c90 1 parent 1af4cc9
@onewland onewland authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bb/class.rb
View
2  lib/bb/class.rb
@@ -265,7 +265,7 @@ def gen_from_xml_body
def gen_from_xml2_body
a = []
- a << "return null if not xml"
+ a << "return null if (not xml? or xml.length == 0)"
a << "obj = new #{fully_qualified_class_name}()"
vars.each do |var|
Please sign in to comment.
Something went wrong with that request. Please try again.