Skip to content

Commit 33eddb2

Browse files
author
lvostinar
committed
SVY-9423 upgrade to angular 1.5.0
angular/angular.js#13794
1 parent 6186555 commit 33eddb2

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

sablo/client_tests/lib/phantomjs.polyfill.js

+20-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,23 @@ $.fn.selectRange = function(start, end) {
7575
range.select();
7676
}
7777
});
78-
};
78+
};
79+
80+
if (typeof Function.prototype.bind != 'function') {
81+
Function.prototype.bind = function bind(obj) {
82+
var args = Array.prototype.slice.call(arguments, 1),
83+
self = this,
84+
nop = function() {
85+
},
86+
bound = function() {
87+
return self.apply(
88+
this instanceof nop ? this : (obj || {}), args.concat(
89+
Array.prototype.slice.call(arguments)
90+
)
91+
);
92+
};
93+
nop.prototype = this.prototype || {};
94+
bound.prototype = new nop();
95+
return bound;
96+
};
97+
}

0 commit comments

Comments
 (0)