limit.js icon indicating copy to clipboard operation
limit.js copied to clipboard

Play nice with others

Open yairEO opened this issue 7 years ago • 2 comments

If any of the prototypes was already defined at Function constructor than use it instead of overriding:

It's a simple addition:

Function.prototype.throttle = Function.prototype.throttle || function...

yairEO avatar Dec 11 '18 12:12 yairEO

Would you like to submit a pull request?

m-gagne avatar Dec 11 '18 13:12 m-gagne

not really :) sorry it's just a ton of hassle for such small change..

I would have to clone it, and make the change and then open you a PR and then delete my clone (I dislike having useless clones linked to me).

I blame GITHUB for making this processes a living hell. I also maintain repos and very few people are sending me PRs because it's a huge pain-in-the-butt

yairEO avatar Dec 11 '18 13:12 yairEO