Dallinger/Dallinger

View on GitHub
demos/dlgr/demos/twentyfortyeight/static/scripts/bind_polyfill.js

Summary

Maintainability
A
0 mins
Test Coverage
Function.prototype.bind = Function.prototype.bind || function (target) {
  var self = this;
  return function (args) {
    if (!(args instanceof Array)) {
      args = [args];
    }
    self.apply(target, args);
  };
};