equal
deleted
inserted
replaced
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] ) |