aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-03 20:27:23 -0400
committerCash Costello <cash.costello@gmail.com>2011-11-03 20:27:23 -0400
commit8f537ce0d21aa86fcb6a10e2fab4ac46fe1b473d (patch)
tree101cbfdda62b308d519a9d9914bf17d24f06f3cf /js
parent248f166dca51ea04e39560c19043a1c1a83d24d9 (diff)
downloadelgg-8f537ce0d21aa86fcb6a10e2fab4ac46fe1b473d.tar.gz
elgg-8f537ce0d21aa86fcb6a10e2fab4ac46fe1b473d.tar.bz2
Refs #4051 insert also needed to check for undefined priorities
Diffstat (limited to 'js')
-rw-r--r--js/classes/ElggPriorityList.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/classes/ElggPriorityList.js b/js/classes/ElggPriorityList.js
index f7f91bb0f..b4cec5044 100644
--- a/js/classes/ElggPriorityList.js
+++ b/js/classes/ElggPriorityList.js
@@ -17,7 +17,7 @@ elgg.ElggPriorityList = function() {
*/
elgg.ElggPriorityList.prototype.insert = function(obj, opt_priority) {
var priority = 500;
- if (arguments.length == 2) {
+ if (arguments.length == 2 && opt_priority != undefined) {
priority = parseInt(opt_priority, 10);
}