aboutsummaryrefslogtreecommitdiffstats
path: root/data/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-01-28 16:38:36 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-01-31 20:33:33 +0100
commit4a0bcc39b1e1b49dcaa0aa2ab674c6f1ba51e9e5 (patch)
tree642411d3b3b433e8903e0bbbbf46004a37477b58 /data/rhbzpage.js
parent83a7d703cbabd6e514a6d8a948b39325b59e9f58 (diff)
downloadbugzilla-triage-4a0bcc39b1e1b49dcaa0aa2ab674c6f1ba51e9e5.tar.gz
Tons of fixes, we are almost in state that the primitive run is possible.
TOOD: * The most important part is we have to run libbz.initialize() and wait until it is done.
Diffstat (limited to 'data/rhbzpage.js')
-rw-r--r--data/rhbzpage.js13
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
*