lib/ProMotion/screen_helpers/screen_elements.rb in ProMotion-0.6.5 vs lib/ProMotion/screen_helpers/screen_elements.rb in ProMotion-0.7.0
- old
+ new
@@ -12,16 +12,16 @@
element.removeFromSuperview
element = nil
end
alias :remove_element :remove
alias :remove_view :remove
-
+
def add_to(parent_element, element, attrs = {})
+ parent_element.addSubview element
if attrs && attrs.length > 0
set_attributes(element, attrs)
set_easy_attributes(parent_element, element, attrs)
end
- parent_element.addSubview element
element
end
def bounds
return self.view.bounds