Sha256: 12ed0aa85b5097a03e98022b36178afa3702b0e1a8e7d88055e372f7286c7212
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
String.prototype.startsWith = function (prefix, ignoreCase) { var _prefix = prefix.source ? prefix.source : prefix.escapeRegExp(); return this.match(new RegExp("^" + _prefix, ignoreCase ? 'i' : '')); }; String.prototype.endsWith = function (suffix, ignoreCase) { var _suffix = suffix.source ? suffix.source : suffix.escapeRegExp(); return this.match(new RegExp(_suffix + "$", ignoreCase ? 'i' : '')); }; String.prototype.escapeRegExp = function() { return this.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); }; String.prototype.toRegExp = function(options) { return new RegExp(this.escapeRegExp(), options); }; Array.prototype.uniq = function () { return this.filter(function (itm, i, a) { return i == a.indexOf(itm); }); }; jQuery(function ($) { $("[rel=popover]").popover(); $("[rel=tooltip]").tooltip(); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter_bootstrap_builder-0.0.8 | vendor/assets/javascripts/twitter_bootstrap_builder.js |
twitter_bootstrap_builder-0.0.7 | vendor/assets/javascripts/twitter_bootstrap_builder.js |