Sha256: c217073cd86bf39058a12844061d68293255db7101348e3e7fc425e4557da427
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321443492.2406909 g{:@value{ I"length:EFixI"digest; F"%e1f2b075304d469c58522be53ec8dad4I"source; FI"x window.isNumber = function(n) { return !isNaN(parseFloat(n)) && isFinite(n); }; String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); }; String.prototype.titleize = function() { var parts, res; res = []; parts = this.split(" "); $.each(parts, function(index, part) { return res.push(part.capitalize()); }); return res.join(" "); }; Handlebars.registerHelper("rounded", function(number) { if (isNumber(number)) return parseFloat(number).toFixed(2); }); Handlebars.registerHelper("titleize", function(string) { if (string !== void 0) return string.titleize(); }); Handlebars.registerHelper("address_without_comma", function(lab) { if (!(this.data && this.data.address)) return; return this.data.address.replace(/(\s*,\s*$)/g, "").titleize(); }); ; FI" _version; F"%cc77a8c959040f24075849f36d6c3b53
Version data entries
2 entries across 2 versions & 1 rubygems