From e1662f853728c81816110a315097c6451cd2a4e0 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 20 Feb 2017 20:34:09 -0800 Subject: [PATCH] Drop unneeded binds There are no references to `this` in these functions. // FREEBIE --- js/libtextsecure.js | 6 +++--- libtextsecure/account_manager.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index e5766de5..64144bf2 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37952,8 +37952,8 @@ var TextSecureServer = (function() { then(generateKeys). then(registerKeys). then(registrationDone); - }.bind(this)); - }.bind(this)); + }); + }); }, registerSecondDevice: function(setProvisioningUrl, confirmNumber, progressCallback) { var createAccount = this.createAccount.bind(this); @@ -38024,7 +38024,7 @@ var TextSecureServer = (function() { if (preKeyCount < 10) { return generateKeys().then(registerKeys); } - }.bind(this)); + }); }.bind(this)); }, rotateSignedPreKey: function() { diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index f899069d..d25a17be 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -34,8 +34,8 @@ then(generateKeys). then(registerKeys). then(registrationDone); - }.bind(this)); - }.bind(this)); + }); + }); }, registerSecondDevice: function(setProvisioningUrl, confirmNumber, progressCallback) { var createAccount = this.createAccount.bind(this); @@ -106,7 +106,7 @@ if (preKeyCount < 10) { return generateKeys().then(registerKeys); } - }.bind(this)); + }); }.bind(this)); }, rotateSignedPreKey: function() {