o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1339771359.468711:@value{I" class:EFI"BundledAsset; FI"id; F"%280ef8a67c63f328318a5216512dc3e8I"logical_path; F"speedo/jquery.autogrow.jsI" pathname; F"l/Users/stu/Documents/Work/CrankApps/Projects/speedo/vendor/assets/javascripts/speedo/jquery.autogrow.jsI"content_type; FI"application/javascript; FI" mtime; FI"2012-03-22T09:12:18-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$/, '