Merge branch 'tizen_4.0' into tizen_5.0 45/219745/1
authorPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Mon, 9 Dec 2019 13:07:54 +0000 (14:07 +0100)
committerPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Mon, 9 Dec 2019 13:07:54 +0000 (14:07 +0100)
Change-Id: Ib491adc102418f59ef279fc47d45a7ef3f867569

1  2 
packaging/webapi-plugins.spec
src/messageport/messageport_api.js
src/messageport/messageport_instance.cc

@@@ -8,7 -8,7 +8,7 @@@
  %define crosswalk_extensions_path %{_libdir}/%{crosswalk_extensions}
  
  Name:       webapi-plugins
- Version:    2.44
 -Version:    2.40
++Version:    2.45
  Release:    0
  License:    Apache-2.0 and BSD-3-Clause and MIT
  Group:      Development/Libraries
@@@ -33,12 -33,16 +33,14 @@@ function MessagePortChangeCallback(msg
      if (!msg.hasOwnProperty('remotePort')) rmp = null;
      else rmp = new RemoteMessagePort(msg.remotePort, msg.remoteAppId, msg.trusted);
      for (var i = 0; i < listeners.length; i++) {
-         var func = listeners[i][0];
-         setTimeout(function() {
-             func(msg.message, rmp);
-         }, 0);
+         setTimeout(
+             function(f) {
+                 f(msg.message, rmp);
+             }.bind(null, listeners[i][0]),
+             0
+         );
      }
 -});
 +}
  
  function nextCallbackId() {
      return callbackId++;