Array.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:38:39 +0000 (17:38 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:38:39 +0000 (17:38 +0800)
Array.js

index 1d8a285..ed3a095 100644 (file)
--- a/Array.js
+++ b/Array.js
@@ -42,9 +42,9 @@ Roo.applyIf(Array.prototype, {
     map : function(fun )
     {
         var len = this.length >>> 0;
-        if (typeof fun != "function")
+        if (typeof fun != "function") {
             throw new TypeError();
-
+        }
         var res = new Array(len);
         var thisp = arguments[1];
         for (var i = 0; i < len; i++)