diff src/implab/safe.js @ 8:f0035923ff3e

добавлена библиотека для работы с openlayers 3+
author cin
date Mon, 21 Aug 2017 17:47:00 +0300
parents 9c0943c68a90
children 3d4abbce4afc
line wrap: on
line diff
--- a/src/implab/safe.js	Tue Jun 20 19:45:15 2017 +0300
+++ b/src/implab/safe.js	Mon Aug 21 17:47: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)