diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-03 20:27:23 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-03 20:27:23 -0400 |
commit | 8f537ce0d21aa86fcb6a10e2fab4ac46fe1b473d (patch) | |
tree | 101cbfdda62b308d519a9d9914bf17d24f06f3cf /js | |
parent | 248f166dca51ea04e39560c19043a1c1a83d24d9 (diff) | |
download | elgg-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.js | 2 |
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); } |