test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc in i18n_viz-0.3.0 vs test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc in i18n_viz-0.3.1

- old
+ new

@@ -1,45 +1,46 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1336549141.4883397@õ: @value"6{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1336981034.6760137CÏ: @value"—{I" class:EFI"ProcessedAsset;FI"logical_path;FI"i18n_viz/processing.js;FI" pathname;FI"Q/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2012-04-20T18:59:57+02:00;FI" length;Fi#I" digest;F"%3a3d6cc3ac5ce2f53d1c9ff7dd3ea423I" source;FI"#(function() { +mtime;FI"2012-05-14T09:35:30+02:00;FI" length;Fi„I" digest;F"%5a9264d8c9387a5afcba074db9a11f83I" source;FI"„(function() { + window.I18nViz.extractI18nKeysFromText = function(text) { + var keys; + keys = text.match(window.I18nViz.global_regex); + if (keys) { + keys.forEach(function(value, index) { + return keys[index] = value.replace(/--/g, ""); + }); + return keys; + } else { + return null; + } + }; + $.fn.enrichWithI18nData = function() { - var i18n_keys; - i18n_keys = I18nViz.extractI18nKeysFromText($(this).text()); + var $i18n_element, i18n_keys; + $i18n_element = $(this); + i18n_keys = window.I18nViz.extractI18nKeysFromText($i18n_element.text()); if (i18n_keys !== null) { - $(this).addClass("i18n-viz").data("i18n-keys", i18n_keys); + $i18n_element.addClass("i18n-viz").data("i18n-keys", i18n_keys); } - return $(this); + return $i18n_element; }; $.fn.clearI18nText = function() { $(this).textNodes().each(function() { return $(this).replaceWith($(this).text().replace(I18nViz.global_regex, "")); }); return $(this); }; - I18nViz.extractI18nKeysFromText = function(text) { - var keys; - keys = text.match(I18nViz.global_regex); - if (keys) { - keys.forEach(function(value, index) { - return keys[index] = value.replace(/--/g, ""); - }); - return keys; - } else { - return null; - } - }; - $.extend($.expr[':'], { 'i18n-textnode': function(el) { - return I18nViz.regex.test($(el).textNodes().text()); + return window.I18nViz.regex.test($(el).textNodes().text()); }, 'i18n-value-placeholder': function(el) { - return I18nViz.regex.test($(el).val()) || I18nViz.regex.test($(el).attr('placeholder')); + return window.I18nViz.regex.test($(el).val()) || I18nViz.regex.test($(el).attr('placeholder')); } }); }).call(this); -;TI"dependency_digest;F"%bd0847e8900518c79b2ab92b56874549I"required_paths;F[I"Q/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee;FI"dependency_paths;F[{I" path;FI"Q/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee;FI" -mtime;FI"2012-04-20T18:59:57+02:00;FI" digest;F"%9ab584be77952bbcfe470fc00baed98eI" _version;F"%45a9b34d2c65935f21d8f90f1e1b2836 +;TI"dependency_digest;F"%90e03942f6558c487e0d4edefe17ed22I"required_paths;F[I"Q/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee;FI"dependency_paths;F[{I" path;FI"Q/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee;FI" +mtime;FI"2012-05-14T09:35:30+02:00;FI" digest;F"%c4f41ecc1b1e60fb2a28192a4d5ed4fbI" _version;F"%45a9b34d2c65935f21d8f90f1e1b2836 \ No newline at end of file