o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1332874152.22196894½: @value{I" class:EFI"BundledAsset; FI"id; F"%9a8a42d3f64292ae8182640e5ab6b601I"logical_path; FI"jquery.autogrow.js; FI" pathname; FI"Q/home/ben/Work/CrankApps/speedo/vendor/assets/javascripts/jquery.autogrow.js; FI"content_type; FI"application/javascript; FI" mtime; FI"2012-03-20T14:29:39-04:00; FI" body; FI"›(function($) { /* * Auto-growing textareas */ $.fn.autogrow = function(options) { this.filter('textarea').each(function() { var $this = $(this), minHeight = $this.height(), lineHeight = $this.css('lineHeight'); var shadow = $('
').css({ position: 'absolute', top: -10000, left: -10000, width: $(this).width() - parseInt($this.css('paddingLeft')) - parseInt($this.css('paddingRight')), fontSize: $this.css('fontSize'), fontFamily: $this.css('fontFamily'), lineHeight: $this.css('lineHeight'), resize: 'none' }).appendTo(document.body); var update = function() { var times = function(string, number) { var _res = ''; for(var i = 0; i < number; i ++) { _res = _res + string; } return _res; }; var val = this.value.replace(//g, '>') .replace(/&/g, '&') .replace(/\n$/, '
 ') .replace(/\n/g, '
') .replace(/ {2,}/g, function(space) { return times(' ', space.length -1) + ' ' }); shadow.html(val); $(this).css('height', Math.max(shadow.height() + 20, minHeight)); } $(this).change(update).keyup(update).keydown(update); update.apply(this); }); return this; } })(jQuery); ; FI"asset_paths; F[I"Q/home/ben/Work/CrankApps/speedo/vendor/assets/javascripts/jquery.autogrow.js; FI"dependency_paths; F[{I" path; FI"Q/home/ben/Work/CrankApps/speedo/vendor/assets/javascripts/jquery.autogrow.js; FI" mtime; FIu: Time ’ €pv: @_zoneI"EDT; T: offsetiþÀÇI"hexdigest; F"%1eb9e00779da0fd575ea404b0b7c3a96I" _version; F"%46dde6621c301f4928e3b34efee9e3b5