includes/clientside/static/dropdown.js
changeset 1265 7091cff2ca01
parent 1254 221d14331ebe
child 1272 05b7645f12e6
equal deleted inserted replaced
1264:28c82f292a52 1265:7091cff2ca01
    60 {
    60 {
    61 	$dynano(obj).addClass('menu');
    61 	$dynano(obj).addClass('menu');
    62 	removeTextNodes(obj);
    62 	removeTextNodes(obj);
    63 	
    63 	
    64 	var html = document.getElementsByTagName('html')[0];
    64 	var html = document.getElementsByTagName('html')[0];
    65 	var direction = typeof(html.dir) != 'undefined' ? html.dir : 'ltr';
    65 	var direction = typeof(html.dir) != 'undefined' && html.dir != '' ? html.dir : 'ltr';
    66 	
    66 	
    67 	for ( var i = 0; i < obj.childNodes.length; i++ )
    67 	for ( var i = 0; i < obj.childNodes.length; i++ )
    68 	{
    68 	{
    69 		/* normally this would be done in about 2 lines of code, but javascript is so picky..... */
    69 		/* normally this would be done in about 2 lines of code, but javascript is so picky..... */
    70 		if ( obj.childNodes[i] )
    70 		if ( obj.childNodes[i] )