{"action":"created","issue":{"url":"https://api.github.com/repos/agershun/alasql/issues/410","labels_url":"https://api.github.com/repos/agershun/alasql/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/agershun/alasql/issues/410/comments","events_url":"https://api.github.com/repos/agershun/alasql/issues/410/events","html_url":"https://github.com/agershun/alasql/issues/410","id":105987596,"number":410,"title":"alasql undefined under ionic / iOS (Phonegap, cordova)","user":{"login":"ThinklabsGbR","id":4183726,"avatar_url":"https://avatars.githubusercontent.com/u/4183726?v=3","gravatar_id":"","url":"https://api.github.com/users/ThinklabsGbR","html_url":"https://github.com/ThinklabsGbR","followers_url":"https://api.github.com/users/ThinklabsGbR/followers","following_url":"https://api.github.com/users/ThinklabsGbR/following{/other_user}","gists_url":"https://api.github.com/users/ThinklabsGbR/gists{/gist_id}","starred_url":"https://api.github.com/users/ThinklabsGbR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThinklabsGbR/subscriptions","organizations_url":"https://api.github.com/users/ThinklabsGbR/orgs","repos_url":"https://api.github.com/users/ThinklabsGbR/repos","events_url":"https://api.github.com/users/ThinklabsGbR/events{/privacy}","received_events_url":"https://api.github.com/users/ThinklabsGbR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-11T10:50:51Z","updated_at":"2015-09-14T13:33:14Z","closed_at":null,"body":"alasql works fine in android, chrome, IE, FF, Safari, and even on Safari within iOS. But as an iOS app, alasql fails to load. Maybe a problem with webworkers? I also noticed the \"alasql\"-defintion around Line 90 in alsql.js gets called over a 100 times! Is this normal?\r\n\r\n    // (...) Around line 89/90\r\n    var alasql = function alasql(sql, params, cb, scope) {\r\n        console.log(\"alasql defined!\");\r\n\r\nSimple check for iOS regarding the alasql not found error:\r\n\r\n      var check = 0;\r\n      var checkAlasql = function(id) {\r\n                    check++;\r\n                    console.log(\"checking alasql: Try \"+check);\r\n                    if(typeof alasql !== 'undefined'){\r\n                        console.log(\"alasql was DEFINED\");\r\n                    } else {\r\n                        console.log(\"alasql was UNDEFINED\");\r\n                        setTimeout(function(id){\r\n                            checkAlasql(id);\r\n                        },100);\r\n                    }\r\n                };\r\n      checkAlasql(10);\r\n\r\n(must be run under iOS as an ionic/Phonegap-app!)"},"comment":{"url":"https://api.github.com/repos/agershun/alasql/issues/comments/140077002","html_url":"https://github.com/agershun/alasql/issues/410#issuecomment-140077002","issue_url":"https://api.github.com/repos/agershun/alasql/issues/410","id":140077002,"user":{"login":"pboos","id":398400,"avatar_url":"https://avatars.githubusercontent.com/u/398400?v=3","gravatar_id":"","url":"https://api.github.com/users/pboos","html_url":"https://github.com/pboos","followers_url":"https://api.github.com/users/pboos/followers","following_url":"https://api.github.com/users/pboos/following{/other_user}","gists_url":"https://api.github.com/users/pboos/gists{/gist_id}","starred_url":"https://api.github.com/users/pboos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pboos/subscriptions","organizations_url":"https://api.github.com/users/pboos/orgs","repos_url":"https://api.github.com/users/pboos/repos","events_url":"https://api.github.com/users/pboos/events{/privacy}","received_events_url":"https://api.github.com/users/pboos/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T13:33:14Z","updated_at":"2015-09-14T13:33:14Z","body":"With the current develop version it is not working either. alasql is UNDEFINED.\r\n\r\nIf including alasql-worker.min.js then it seems alasql is defined. But it seems we are running into other problems there. And it should work as well without having to include alasql-worker.min.js.\r\n\r\nAny idea what it could be?"}}