diff options
Diffstat (limited to 'data/rhbzpage.js')
-rw-r--r-- | data/rhbzpage.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/data/rhbzpage.js b/data/rhbzpage.js index ba55ed6..ee10466 100644 --- a/data/rhbzpage.js +++ b/data/rhbzpage.js @@ -2,7 +2,6 @@ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php "use strict"; -var NumberOfFrames = require("bzpage").NumberOfFrames; var titleParsedAttachment = "Part of the thread where crash happened"; // ==================================================================================== // RHBugzillaPage object @@ -18,6 +17,18 @@ nonTestedFunction getDefaultAssignee() { this.getComponent()).toLowerCase(); } + +function removeDuplicates (arr) { + for (var i = 0; i < arr.length; i++) { + for (var j = i + 1; j < arr.length; j++) { + if (arr[i] == arr[j]) { + arr.splice (j, 1); + } + } + } + return arr; +} + /** * Set default assignee * |