lib/glimmer/dsl/opal/widget_expression.rb in glimmer-dsl-opal-0.7.5 vs lib/glimmer/dsl/opal/widget_expression.rb in glimmer-dsl-opal-0.8.0

- old
+ new

@@ -5,10 +5,11 @@ module Glimmer module DSL module Opal class WidgetExpression < Expression include ParentExpression + EXCLUDED_KEYWORDS = %w[shell display] def can_interpret?(parent, keyword, *args, &block) !EXCLUDED_KEYWORDS.include?(keyword) and parent.is_a?(Glimmer::SWT::WidgetProxy) and @@ -16,12 +17,12 @@ end def interpret(parent, keyword, *args, &block) Glimmer::SWT::WidgetProxy.for(keyword, parent, args, block) end - + def add_content(parent, &block) - if parent.rendered? + if parent.rendered? || parent.skip_content_on_render_blocks? super(parent, &block) parent.post_add_content else parent.add_content_on_render(&block) end