test/dummy/tmp/cache/assets/test/sprockets/ece3270b150db7c668579bb91ac7e2e5 in extface-0.1.0 vs test/dummy/tmp/cache/assets/test/sprockets/ece3270b150db7c668579bb91ac7e2e5 in extface-0.1.1

- old
+ new

@@ -1,16 +1,21 @@ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"extface/jobs.js;FI" pathname;TI"H/home/alex/workspace/extface/app/assets/javascripts/extface/jobs.js;FI"content_type;TI"application/javascript;TI" -mtime;Tl+¿³SI" length;TiîI" digest;TI"%41bfddf3bb0a26e984a860bf506276c5;FI" source;TI"îdocument.open_sse = function(url) { - source.onmessage = function(e) { - console.log(e.data); - }; - - source.onopen = function(e) { - console.log('connection opened'); - }; - - source.onerror = function(e) { - source.close(); +mtime;Tl+:DSI" length;TiSI" digest;TI"%c2701686a1b188e3b8346a86272e110f;FI" source;TI"Sdocument.open_sse = function(url) { + if (!!window.EventSource) { + var source = new EventSource(url); + + source.onmessage = function(e) { + console.log(e.data); + }; + + source.onopen = function(e) { + console.log('connection opened'); + }; + + source.onerror = function(e) { + source.close(); + }; + } }; -;TI"dependency_digest;TI"%f76502f336cbe0a83c42bc7bbfb3fd4d;FI"required_paths;T[I"H/home/alex/workspace/extface/app/assets/javascripts/extface/jobs.js;FI"dependency_paths;T[{I" path;TI"H/home/alex/workspace/extface/app/assets/javascripts/extface/jobs.js;FI" -mtime;TI"2014-02-21T22:14:55+02:00;TI" digest;TI"%41bfddf3bb0a26e984a860bf506276c5;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F +;TI"dependency_digest;TI"%86132b7f706c007854f120daec9a4c49;FI"required_paths;T[I"H/home/alex/workspace/extface/app/assets/javascripts/extface/jobs.js;FI"dependency_paths;T[{I" path;TI"H/home/alex/workspace/extface/app/assets/javascripts/extface/jobs.js;FI" +mtime;TI"2014-03-03T10:58:34+02:00;TI" digest;TI"%c2701686a1b188e3b8346a86272e110f;FI" _version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F \ No newline at end of file