We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/minio/minio-js/blob/master/src/main/minio.js#L282 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
> obj = {test:"from the object"} { test: 'from the object' } > let arrowFunction = () => console.log(this.test); > let regularFunction = function() {console.log(this.test)}; > let bindArrowFunction = arrowFunction.bind(obj); > let bindRegularFunction = regularFunction.bind(obj); > arrowFunction() undefined > regularFunction() undefined > bindArrowFunction() undefined > bindRegularFunction() from the object
The text was updated successfully, but these errors were encountered:
thanks @dcharbonnier }.bind(this) must have been from previous code when it was function(){ } style, we'll fix it.
}.bind(this)
function(){ }
Sorry, something went wrong.
Remove bind() for arrow functions.
9374134
Add command in package.json for browserify. Fixes minio#572
Pending PR
Remove bind() for arrow functions. (#585)
f23c590
Add command in package.json for browserify. Fixes #572
krishnasrinivas
No branches or pull requests
https://github.com/minio/minio-js/blob/master/src/main/minio.js#L282
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
The text was updated successfully, but these errors were encountered: