Sha256: 92f70ae6f4ed1ae465825c9200333a131249a934c097312c1a2a6e643a620a48

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 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

1 entries across 1 versions & 1 rubygems

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