[polari] telepathyClient: Use normal function parameters



commit 1855d15fd638962af0ce01b86be2cdb7a491638b
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 16 19:54:20 2017 +0100

    telepathyClient: Use normal function parameters
    
    Latest gjs seems to have problems with using destructuring assignment
    with the arguments object - we use normal parameter syntax everywhere
    else, so just switch to that here as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778793

 src/telepathyClient.js |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 92fdbad..f413f4a 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -473,10 +473,8 @@ const TelepathyClient = new Lang.Class({
         context.accept();
     },
 
-    vfunc_observe_channels: function() {
-        let [account, connection,
-             channels, op, requests, context] = arguments;
-
+    vfunc_observe_channels: function(account, connection, channels,
+                                     op, requests, context) {
         this._processRequest(context, connection, channels, Lang.bind(this,
             function(channel) {
                 if (this._isAuthChannel(channel))
@@ -499,10 +497,8 @@ const TelepathyClient = new Lang.Class({
             }));
     },
 
-    vfunc_handle_channels: function() {
-        let [account, connection,
-             channels, satisfied, userTime, context] = arguments;
-
+    vfunc_handle_channels: function(account, connection, channels,
+                                    satisfied, userTime, context) {
         let [present, ] = Tp.user_action_time_should_present(userTime);
 
         this._processRequest(context, connection, channels, Lang.bind(this,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]