You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/06/01 08:22:30 UTC

ambari git commit: AMBARI-16960. There is no public stack versions available on admin view stack versions when using Firefox 24.0 (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 4306e0e9c -> 2b0d2d1b5


AMBARI-16960. There is no public stack versions available on admin view stack versions when using Firefox 24.0 (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2b0d2d1b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2b0d2d1b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2b0d2d1b

Branch: refs/heads/branch-2.4
Commit: 2b0d2d1b5a21d7c730075c906e4e8ad26b293f9f
Parents: 4306e0e
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue May 31 14:17:57 2016 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Jun 1 11:22:22 2016 +0300

----------------------------------------------------------------------
 .../resources/ui/admin-web/app/scripts/app.js   | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2b0d2d1b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/app.js
----------------------------------------------------------------------
diff --git a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/app.js b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/app.js
index 63aa4eb..47b87c4 100644
--- a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/app.js
+++ b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/app.js
@@ -131,4 +131,25 @@ angular.module('ambariAdminConsole', [
     }];
     return $delegate;
   }]);
+
+  if (!Array.prototype.find) {
+    Array.prototype.find = function (callback, context) {
+      if (this == null) {
+        throw new TypeError('Array.prototype.find called on null or undefined');
+      }
+      if (typeof callback !== 'function') {
+        throw new TypeError(callback + ' is not a function');
+      }
+      var list = Object(this),
+        length = list.length >>> 0,
+        value;
+      for (var i = 0; i < length; i++) {
+        value = list[i];
+        if (callback.call(context, value, i, list)) {
+          return value;
+        }
+      }
+      return undefined;
+    };
+  }
 }]);