{"action":"closed","issue":{"url":"https://api.github.com/repos/niklasvh/html2canvas/issues/704","labels_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/704/comments","events_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/704/events","html_url":"https://github.com/niklasvh/html2canvas/issues/704","id":112526387,"number":704,"title":"window.html2canvas is undefined","user":{"login":"Bart-Holland","id":2439873,"avatar_url":"https://avatars.githubusercontent.com/u/2439873?v=3","gravatar_id":"","url":"https://api.github.com/users/Bart-Holland","html_url":"https://github.com/Bart-Holland","followers_url":"https://api.github.com/users/Bart-Holland/followers","following_url":"https://api.github.com/users/Bart-Holland/following{/other_user}","gists_url":"https://api.github.com/users/Bart-Holland/gists{/gist_id}","starred_url":"https://api.github.com/users/Bart-Holland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bart-Holland/subscriptions","organizations_url":"https://api.github.com/users/Bart-Holland/orgs","repos_url":"https://api.github.com/users/Bart-Holland/repos","events_url":"https://api.github.com/users/Bart-Holland/events{/privacy}","received_events_url":"https://api.github.com/users/Bart-Holland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T07:20:57Z","updated_at":"2016-01-23T18:55:04Z","closed_at":"2016-01-23T18:55:04Z","body":"This is for the Beta2 version!\r\n\r\nI downloaded the beta2, did my npm install and then the grunt.\r\nI am now trying to use it in my project (also using require, backbone and jquery).\r\n\r\nWhen running the following script:\r\n```javascript\r\nhtml2canvas(document.getElementById('sitChartWrap'), {\r\n                allowTaint: true,\r\n                onrendered: function(canvas) {\r\n                    $('#reportEvacChart').html(canvas);\r\n                }\r\n            });\r\n```\r\nI get this error on line 1488:\r\n```javascript\r\n    window.html2canvas is undefined\r\n```\r\n\r\nthe whole code block in html2canvas:\r\n\r\n```javascript\r\n13: [function (require, module, exports) {\r\n            module.exports = function () {\r\n                if (window.html2canvas.logging && window.console && window.console.log) {\r\n                    Function.prototype.bind.call(window.console.log, (window.console)).apply(window.console, [(Date.now() - window.html2canvas.start) + \"ms\", \"html2canvas:\"].concat([].slice.call(arguments, 0)));\r\n                }\r\n            };\r\n\r\n        }, {}],\r\n```\r\n\r\nFor now I changed the if statement to:\r\n\r\n```javascript\r\n if (window.html2canvas && window.html2canvas.logging && window.console && window.console.log) {\r\n```\r\nseems to work now, but don't know if it should go like this.\r\n\r\n"}}