{"action":"closed","issue":{"url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/160","repository_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader","labels_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/160/comments","events_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/160/events","html_url":"https://github.com/LPology/Simple-Ajax-Uploader/issues/160","id":148114359,"number":160,"title":"ss.isVisible bug if elem==null","user":{"login":"RCohenE5Group","id":17500859,"avatar_url":"https://avatars.githubusercontent.com/u/17500859?v=3","gravatar_id":"","url":"https://api.github.com/users/RCohenE5Group","html_url":"https://github.com/RCohenE5Group","followers_url":"https://api.github.com/users/RCohenE5Group/followers","following_url":"https://api.github.com/users/RCohenE5Group/following{/other_user}","gists_url":"https://api.github.com/users/RCohenE5Group/gists{/gist_id}","starred_url":"https://api.github.com/users/RCohenE5Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RCohenE5Group/subscriptions","organizations_url":"https://api.github.com/users/RCohenE5Group/orgs","repos_url":"https://api.github.com/users/RCohenE5Group/repos","events_url":"https://api.github.com/users/RCohenE5Group/events{/privacy}","received_events_url":"https://api.github.com/users/RCohenE5Group/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T16:29:59Z","updated_at":"2016-04-17T02:12:17Z","closed_at":"2016-04-17T02:12:17Z","body":"Hello\r\nI use Simple Ajax Uploader Version 2.5.3 , and have the following error : \r\n\r\n`Uncaught TypeError: Cannot read property 'nodeType' of null` SimpleAjaxUploader.js:389 \r\n\r\nIn debug mode I find that elem.parentNode==null. I'm not sure but I think this is because the div containing \"upload\" button is hidden by jquery tabs(). In that context, it seems that parentNode can be null, which is not tested in the recursivity of isVisible() : \r\n\r\n`ss.isVisible = function( elem ) {\r\n    \"use strict\";\r\n\r\n    if ( elem.nodeType !== 1 || elem == document.body ) {\r\n        elem = null;\r\n        return true;\r\n    }\r\n\r\n    if ( elem.offsetWidth > 0 ||\r\n         elem.offsetHeight > 0 ||\r\n         ss.getStyle( elem, 'display' ).toLowerCase() != 'none' )\r\n    {\r\n        return ss.isVisible( **elem.parentNode** );\r\n    }\r\n\r\n    elem = null;\r\n    return false;\r\n};\r\n`\r\n\r\nThanks for your help."}}