diff --git a/vendor/assets/javascripts/hamlcoffee.js.coffee.erb b/vendor/assets/javascripts/hamlcoffee.js.coffee.erb index b4b460b..9548511 100644 --- a/vendor/assets/javascripts/hamlcoffee.js.coffee.erb +++ b/vendor/assets/javascripts/hamlcoffee.js.coffee.erb @@ -74,9 +74,9 @@ class window.HAML # @return [String] the preserved text # @findAndPreserve: (text) -> - tags = '<%= HamlCoffeeAssets.config.preserveTags %>'.split(',').join('|') + tags = '<%= ::HamlCoffeeAssets.config.preserveTags %>'.split(',').join('|') text = text.replace ///<(#{ tags })>([^]*?)<\/\1>///g, (str, tag, content) -> - "<#{ tag }>#{ <%= HamlCoffeeAssets.config.customPreserve %>(content) }" + "<#{ tag }>#{ <%= ::HamlCoffeeAssets.config.customPreserve %>(content) }" # The surround helper surrounds the function output # with the start and end string without whitespace in between. diff --git a/vendor/assets/javascripts/hamlcoffee_amd.js.coffee.erb b/vendor/assets/javascripts/hamlcoffee_amd.js.coffee.erb index bf4060a..9b203a6 100644 --- a/vendor/assets/javascripts/hamlcoffee_amd.js.coffee.erb +++ b/vendor/assets/javascripts/hamlcoffee_amd.js.coffee.erb @@ -47,9 +47,9 @@ define -> # @return [String] the preserved text # findAndPreserve: (text) -> - tags = '<%= HamlCoffeeAssets.config.preserveTags %>'.split(',').join('|') + tags = '<%= ::HamlCoffeeAssets.config.preserveTags %>'.split(',').join('|') text = text.replace ///<(#{ tags })>([^]*?)<\/\1>/// g, (str, tag, content) -> - "<#{ tag }>#{ <%= HamlCoffeeAssets.config.customPreserve %>(content) }" + "<#{ tag }>#{ <%= ::HamlCoffeeAssets.config.customPreserve %>(content) }" # The surround helper surrounds the function output # with the start and end string without whitespace in between.