Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f19ffc571db527f1fb971de4e640d3d0b70da65b 1 parent 6934df9
@ArthurN ArthurN authored
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})"
Please sign in to comment.
Something went wrong with that request. Please try again.