o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1388437007.10988: @value"5 {I" class:EFI"ProcessedAsset;FI"logical_path;FI"mercury/history_buffer.js;FI" pathname;FI"/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/history_buffer.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-12-30T11:31:51-05:00;FI" length;FiSI" digest;F"%bab9d6fb9d1c99a7e9d04494ee7ad79aI" source;FI"S(function() { this.Mercury.HistoryBuffer = (function() { function HistoryBuffer(maxLength) { this.maxLength = maxLength != null ? maxLength : 200; this.index = 0; this.stack = []; this.markerRegExp = /<\/em>/g; } HistoryBuffer.prototype.push = function(item) { if (jQuery.type(item) === 'string') { if (this.stack[this.index] && this.stack[this.index].replace(this.markerRegExp, '') === item.replace(this.markerRegExp, '')) { return; } } else if (jQuery.type(item) === 'object' && item.html) { if (this.stack[this.index] && this.stack[this.index].html === item.html) { return; } } this.stack = this.stack.slice(0, this.index + 1); this.stack.push(item); if (this.stack.length > this.maxLength) { this.stack.shift(); } return this.index = this.stack.length - 1; }; HistoryBuffer.prototype.undo = function() { if (this.index < 1) { return null; } this.index -= 1; return this.stack[this.index]; }; HistoryBuffer.prototype.redo = function() { if (this.index >= this.stack.length - 1) { return null; } this.index += 1; return this.stack[this.index]; }; return HistoryBuffer; })(); }).call(this); ;TI"dependency_digest;F"%98a42a54e0510269974fe8c825f73cb5I"required_paths;F[I"/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/history_buffer.js.coffee;FI"dependency_paths;F[{I" path;FI"/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/history_buffer.js.coffee;FI" mtime;FI"2013-12-30T11:31:51-05:00;FI" digest;F"%36548716ad4c10356457854607332d6eI" _version;F"%6776f581a4329e299531e1d52aa59832