Created
July 18, 2011 22:24
-
-
Save ArthurN/1090842 to your computer and use it in GitHub Desktop.
isotope fix for nil exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source = included_scripts_source || "" | |
source += " " + IO.read(isotope_file_path) | |
context = ExecJS.compile(source) | |
script = "Isotope(#{view_file_content.to_json}, #{options[:locals].to_json})" | |
output = context.eval(script) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment