Fix comment on new view helper method.

This commit is contained in:
Mark Rickert
2013-06-06 14:13:26 -04:00
parent 5767b296ed
commit 2792fb07b4

View File

@@ -70,13 +70,13 @@ module ProMotion
end
def closest_parent(type)
# iterate up the view hierarchy to find the table containing this cell/view
# iterate up the view hierarchy to find the parent element of "type" containing this view
this_view = self.superview
while this_view != nil do
return this_view if this_view.is_a? type
this_view = this_view.superview
end
nil # this view is not within a tableView
nil
end
end
end