]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Remove unused options argument in onnotification event handler
authorPierre Ossman <ossman@cendio.se>
Fri, 27 Oct 2017 07:30:47 +0000 (09:30 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 9 Nov 2017 12:13:41 +0000 (13:13 +0100)
app/ui.js
core/rfb.js
docs/API.md
vnc_lite.html

index 52fcf1612a5eaea41078a07bf9a0396690c6529d..1202fe26bfb9e85e5696821b004824a7370205ac 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -534,7 +534,7 @@ var UI = {
         document.getElementById('noVNC_status').classList.remove("noVNC_open");
     },
 
-    notification: function (rfb, msg, level, options) {
+    notification: function (rfb, msg, level) {
         UI.showStatus(msg, level);
     },
 
index 28e1a4a4c919f9a0075920f83d7644e51b67913a..55d20995c66bc045c4fd28355be1f52acb99a0ad 100644 (file)
@@ -588,11 +588,10 @@ RFB.prototype = {
      * Send a notification to the UI. Valid levels are:
      *   'normal'|'warn'|'error'
      *
-     *   NOTE: Options could be added in the future.
      *   NOTE: If this function is called multiple times, remember that the
      *         interface could be only showing the latest notification.
      */
-    _notification: function(msg, level, options) {
+    _notification: function(msg, level) {
         switch (level) {
             case 'normal':
             case 'warn':
@@ -604,11 +603,7 @@ RFB.prototype = {
                 return;
         }
 
-        if (options) {
-            this.onnotification(this, msg, level, options);
-        } else {
-            this.onnotification(this, msg, level);
-        }
+        this.onnotification(this, msg, level);
     },
 
     _setCapability: function (cap, val) {
index 8627f6c98dcfd4b31af3074eb389c452575a02e9..519d3bfea559cfec90e92be011e2adb1852b405d 100644 (file)
@@ -206,11 +206,9 @@ severity of the message. The following levels are currently defined:
   - `"warn"`
   - `"error"`
 
-**`options`** is currently unused.
-
 ##### Syntax
 
-    RFB.onnotification = function(rfb, msg, level, options) { ... }
+    RFB.onnotification = function(rfb, msg, level) { ... }
 
 #### RFB.ondisconnected
 
index f457423b3e131de65ac2f278590f1a0156a78609..1a952f1b9b52366c404033df2fda7ecfd08490b9 100644 (file)
                 status(reason, "error");
             }
         }
-        function notification(rfb, msg, level, options) {
+        function notification(rfb, msg, level) {
             status(msg, level);
         }