diff src/implab/safe.js @ 10:8705103f074f

Слияние
author cin
date Mon, 21 Aug 2017 18:03:00 +0300
parents f0035923ff3e
children 3d4abbce4afc
line wrap: on
line diff
--- a/src/implab/safe.js	Mon Jun 26 13:27:27 2017 +0300
+++ b/src/implab/safe.js	Mon Aug 21 18:03:00 2017 +0300
@@ -143,7 +143,7 @@
              * @param{Function|String} fn [Required] Function wich will be wrapped.
              */
             async: function (fn, thisArg) {
-                if (arguments.length == 2)
+                if (arguments.length == 2 && !(fn instanceof Function))
                     fn = thisArg[fn];
 
                 if (fn == null)