o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1337093725.7696278: @value"¿{I" class:EFI"ProcessedAsset;FI"logical_path;F"(ems/lib/batman/lib/batman.jquery.jsI" pathname;F"t/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/lib/batman.jquery.jsI"content_type;FI"application/javascript;FI" mtime;FI"2012-05-14T17:32:22+01:00;FI" length;FiJ I" digest;F"%e8bc531eb96f82b0169e68119cc6a41fI" source;FI"J (function() { Batman.Request.prototype._parseResponseHeaders = function(xhr) { var headers; return headers = xhr.getAllResponseHeaders().split('\n').reduce(function(acc, header) { var key, matches, value; if (matches = header.match(/([^:]*):\s*(.*)/)) { key = matches[1]; value = matches[2]; acc[key] = value; } return acc; }, {}); }; Batman.Request.prototype._prepareOptions = function(data) { var options, _ref, _this = this; options = { url: this.get('url'), type: this.get('method'), dataType: this.get('type'), data: data || this.get('data'), username: this.get('username'), password: this.get('password'), headers: this.get('headers'), beforeSend: function() { return _this.fire('loading'); }, success: function(response, textStatus, xhr) { _this.mixin({ xhr: xhr, status: xhr.status, response: response, responseHeaders: _this._parseResponseHeaders(xhr) }); return _this.fire('success', response); }, error: function(xhr, status, error) { _this.mixin({ xhr: xhr, status: xhr.status, response: xhr.responseText, responseHeaders: _this._parseResponseHeaders(xhr) }); xhr.request = _this; return _this.fire('error', xhr); }, complete: function() { return _this.fire('loaded'); } }; if ((_ref = this.get('method')) === 'PUT' || _ref === 'POST') { if (!this.hasFileUploads()) { options.contentType = this.get('contentType'); } else { options.contentType = false; options.processData = false; options.data = this.constructor.objectToFormData(options.data); } } return options; }; Batman.Request.prototype.send = function(data) { return jQuery.ajax(this._prepareOptions(data)); }; Batman.mixins.animation = { show: function(addToParent) { var jq, show, _ref, _ref1; jq = $(this); show = function() { return jq.show(600); }; if (addToParent) { if ((_ref = addToParent.append) != null) { _ref.appendChild(this); } if ((_ref1 = addToParent.before) != null) { _ref1.parentNode.insertBefore(this, addToParent.before); } jq.hide(); setTimeout(show, 0); } else { show(); } return this; }, hide: function(removeFromParent) { var _this = this; $(this).hide(600, function() { var _ref; if (removeFromParent) { if ((_ref = _this.parentNode) != null) { _ref.removeChild(_this); } } return Batman.DOM.didRemoveNode(_this); }); return this; } }; }).call(this); ;FI"dependency_digest;F"%9c8e33335ae0eabf7b76543264baa316I"required_paths;F["t/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/lib/batman.jquery.jsI"dependency_paths;F[{I" path;F"t/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/lib/batman.jquery.jsI" mtime;FI"2012-05-14T17:32:22+01:00;FI" digest;F"%e8bc531eb96f82b0169e68119cc6a41fI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862