clean of DOM
This commit is contained in:
parent
a56e811699
commit
7820c5eff0
@ -10,7 +10,7 @@ GIT
|
||||
|
||||
GIT
|
||||
remote: git://github.com/salama/parslet.git
|
||||
revision: d4a6444ae01d5688bbb1e8aa27647eb7db1d34a7
|
||||
revision: b8bf8db20a242eb6bd8fec88027e3b2ae19276e8
|
||||
specs:
|
||||
parslet (1.7.0)
|
||||
|
||||
@ -35,7 +35,7 @@ GIT
|
||||
|
||||
GIT
|
||||
remote: git://github.com/salama/salama.git
|
||||
revision: c039f3d6e6a89a5e66fbcb37f4fb02646fe9d5d6
|
||||
revision: df95b8b54de103523743cbfd5c46d87af84c6b09
|
||||
specs:
|
||||
salama (0.2.0)
|
||||
salama-object-file (~> 0.2)
|
||||
|
@ -18,26 +18,6 @@ class ClassesView < ListView
|
||||
wrap_element div("ul.nav!")
|
||||
wrap_element( div(".classes") << div("h4" , "Classes") )
|
||||
return @element
|
||||
|
||||
DOM do |dom|
|
||||
dom.div.classes do
|
||||
dom.h4 {"Classes"}
|
||||
dom.ul.nav! do
|
||||
@classes.each do |cl|
|
||||
dom.li do
|
||||
dom.a { cl.name }
|
||||
dom.ul do
|
||||
cl.object_layout.object_instance_names.each do |name|
|
||||
dom.li do
|
||||
dom.a{ name }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -5,12 +5,6 @@ class ValueView < ElementView
|
||||
end
|
||||
|
||||
def draw
|
||||
DOM do |dom|
|
||||
dom.ul.nav! do
|
||||
dom.li do
|
||||
dom.span( :href => "#" ) { @value }
|
||||
end
|
||||
end
|
||||
end
|
||||
@element = div("ul.nav!") << div("li") << div("span", @value)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user