lib/zena/use/zafu_attributes.rb in zena-1.0.0.rc2 vs lib/zena/use/zafu_attributes.rb in zena-1.0.0.rc3
- old
+ new
@@ -55,11 +55,11 @@
end
end
# Remove 'live' param so that it does not alter RubyLess method building.
def filter_live
- @live_param = @params.delete(:live)
+ @live_param = @params.delete(:live) unless %w{filter}.include?(@method)
end
# Evaluate 'set_xxx' param and store result in context with 'var' name. This name
# will be used during RubyLess method resolution.
def filter_set_var
@@ -87,10 +87,10 @@
# Make sure 'each' method uses 'var' to render these attributes.
@if_class_params.each do |class_name, code|
begin
typed_string = ::RubyLess.translate(self, code)
- @markup.append_dyn_param(:class, "<%= (#{typed_string}) ? ' #{class_name}' : '' %>", true)
+ @markup.append_dyn_param(:class, "<%= (#{typed_string}) ? ' #{class_name}' : '' %>", '')
rescue RubyLess::NoMethodError => err
text += parser_error(err.message, code)
end
end
end
\ No newline at end of file