Skip to content

Instantly share code, notes, and snippets.

View vutreras's full-sized avatar

Víctor utreras vutreras

View GitHub Profile
@vutreras
vutreras / ie.shims.js
Created October 24, 2017 18:00 — forked from dhm116/ie.shims.js
IE7/8 Javascript method shims
'use strict';
// Add ECMA262-5 method binding if not supported natively
//
if (!('bind' in Function.prototype)) {
Function.prototype.bind= function(owner) {
var that= this;
if (arguments.length<=1) {
return function() {
return that.apply(owner, arguments);