Skip to content
Browse files

Add semicolon after included scripts, and concat strings with <<

  • Loading branch information...
1 parent 6934df9 commit f19ffc571db527f1fb971de4e640d3d0b70da65b @ArthurN ArthurN committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/isotope/isotope.rb
View
4 lib/isotope/isotope.rb
@@ -39,8 +39,8 @@ def self.render_partial(view_file, options = {})
view_file_content = template_file_content(view_file)
- initial_script = included_scripts_source || ""
- initial_script += IO.read(isotope_file_path)
+ initial_script = included_scripts_source ? included_scripts_source + ";" : ""
+ initial_script << IO.read(isotope_file_path)
context = ExecJS.compile(initial_script)
script = "Isotope(#{view_file_content.to_json}, #{options[:locals].to_json})"

0 comments on commit f19ffc5

Please sign in to comment.
Something went wrong with that request. Please try again.