Sha256: ab795a1207b900e0f35fca0f0595e37b6348ef8cc1e9918f606119588f94f8fe

Contents?: true

Size: 610 Bytes

Versions: 7

Compression:

Stored size: 610 Bytes

Contents

if (typeof Function.prototype.bind != 'function') {
    Function.prototype.bind = function bind(obj) {
        var args = Array.prototype.slice.call(arguments, 1),
            self = this,
            nop = function() {
            },
            bound = function() {
                return self.apply(
                    this instanceof nop ? this : (obj || {}), args.concat(
                        Array.prototype.slice.call(arguments)
                    )
                );
            };
        nop.prototype = this.prototype || {};
        bound.prototype = new nop();
        return bound;
    };
}

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
decidim-dev-0.0.6 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
decidim-0.0.6 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
decidim-0.0.5 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
decidim-0.0.4 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
decidim-0.0.3 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
decidim-0.0.2 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js
phantomjs_polyfill-rails-1.0.0 vendor/assets/javascripts/phantomjs_polyfill-rails/bind-polyfill.js