witten
/
luminotes
Archived
1
0
Fork 0

When clearing pulldowns, preventing use of pulldown div if it has no pulldown member.

This commit is contained in:
Dan Helfman 2008-08-13 13:02:07 -07:00
parent c6dbeffc10
commit c5b916885a
1 changed files with 3 additions and 0 deletions

View File

@ -2478,6 +2478,9 @@ Wiki.prototype.clear_pulldowns = function ( ephemeral_only ) {
for ( var i in results ) {
var result = results[ i ];
if ( !result.pulldown )
continue;
// only close the pulldown if it's been open at least a quarter second
if ( new Date() - result.pulldown.init_time < 250 )
continue