{I" class:ETI"ProcessedAsset;FI"logical_path;TI" basepack/loading_spinner.js;FI" pathname;TI"]/home/lukas/projects/basepack/app/assets/javascripts/basepack/loading_spinner.coffee.erb;FI"content_type;TI"application/javascript;TI" mtime;Tl+ÚJ¯RI" length;Ti{I" digest;TI"%96d30b6012777e23d670bf0ce019a55d;FI" source;TI"{(function() { this.PageSpinner = { spin: function(ms) { var _this = this; if (ms == null) { ms = 250; } this.spinner = setTimeout((function() { return _this.add_spinner(); }), ms); return $(document).on('page:change', function() { return _this.remove_spinner(); }); }, spinner_html: '\ \ ', spinner: null, add_spinner: function() { $('body').append(this.spinner_html); return $('body div#page-spinner').modal(); }, remove_spinner: function() { clearTimeout(this.spinner); $('div#page-spinner').modal('hide'); return $('div#page-spinner').on('hidden', function() { return $(this).remove(); }); } }; $(document).on('page:fetch', function() { return PageSpinner.spin(); }); }).call(this); ;TI"dependency_digest;TI"%39bec595f6ae2310e858748febd42dd9;FI"required_paths;T[I"]/home/lukas/projects/basepack/app/assets/javascripts/basepack/loading_spinner.coffee.erb;FI"dependency_paths;T[{I" path;TI"]/home/lukas/projects/basepack/app/assets/javascripts/basepack/loading_spinner.coffee.erb;FI" mtime;TI"2013-12-16T19:47:54+01:00;TI" digest;TI"%b6c1f0ecf0e8c8b56e85a45eed61d074;FI" _version;TI"%01dc9d4cb5b0ece13ed47cc1cabfeb41;F