lib/puer/xibtoti.rb in puer-0.0.2 vs lib/puer/xibtoti.rb in puer-0.0.3

- old
+ new

@@ -13,10 +13,10 @@ end end def creation_call(name, class_name, info) - "#{name} = #{class_name}({\n" + + "var #{name} = #{class_name}({\n" + info.keys.sort.map {|key| "\t#{key}:#{inline_js_for(info[key])}"}.join(",\n") + "\n});" end def js_sections_for(node) [creation_call(node.name, node.node_class.creation_call, node.properties)] +