lib/renderers/html/atome_html.rb in atome-0.5.7.4.3 vs lib/renderers/html/atome_html.rb in atome-0.5.7.4.6
- old
+ new
@@ -7,9 +7,13 @@
else
@html
end
end
+ def descendant_of?(ancestor)
+ HTML.is_descendant(ancestor, id)
+ end
+
def to_px(particle)
ruby_wasm_code = <<-JS
var div = document.getElementById("#{@id}");
var style = window.getComputedStyle(div);
var original_value = style.getPropertyValue("#{particle}");
\ No newline at end of file