Sha256: 5d2c7b770c24cb2843aaa999fa0f80f3fba6f089bcfddd6e21994abffe1d49b4

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 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();
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bootstrap_builder-0.0.5 vendor/assets/javascripts/twitter_bootstrap_builder.js