JavaScript
Function.prototype.bind()

by Benny Neugebauer

amplify.subscribe('topic', this, myCallback);

amplify.subscribe('topic', this.myCallback.bind(this));

i prefer direct control

Aleksandr Strutynskyy

Sign in to comment!