{"action":"opened","issue":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/905","repository_url":"https://api.github.com/repos/MrRio/jsPDF","labels_url":"https://api.github.com/repos/MrRio/jsPDF/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/jsPDF/issues/905/comments","events_url":"https://api.github.com/repos/MrRio/jsPDF/issues/905/events","html_url":"https://github.com/MrRio/jsPDF/issues/905","id":182543110,"number":905,"title":"jsPDF loading issue with EmberJS","user":{"login":"tzhbami7","id":401883,"avatar_url":"https://avatars.githubusercontent.com/u/401883?v=3","gravatar_id":"","url":"https://api.github.com/users/tzhbami7","html_url":"https://github.com/tzhbami7","followers_url":"https://api.github.com/users/tzhbami7/followers","following_url":"https://api.github.com/users/tzhbami7/following{/other_user}","gists_url":"https://api.github.com/users/tzhbami7/gists{/gist_id}","starred_url":"https://api.github.com/users/tzhbami7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzhbami7/subscriptions","organizations_url":"https://api.github.com/users/tzhbami7/orgs","repos_url":"https://api.github.com/users/tzhbami7/repos","events_url":"https://api.github.com/users/tzhbami7/events{/privacy}","received_events_url":"https://api.github.com/users/tzhbami7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T14:38:00Z","updated_at":"2016-10-12T14:38:00Z","closed_at":null,"body":"Hey there,\r\n\r\nI've tried to import jsPDF into my Ember App but sadly without any success :/\r\n\r\n**Are you using the latest version of jsPDF?**\r\n`\"version\": \"1.3.2\"`\r\n\r\n**Steps to reproduce**\r\nI have importet jspdf.debug.js like described at https://guides.emberjs.com/v2.0.0/addons-and-dependencies/managing-dependencies/#toc_globals-provided-by-javascript-assets\r\n\r\n`app.import('bower_components/jspdf/dist/jspdf.debug.js');\r\n`\r\n\r\n**What I saw**\r\n`Uncaught Error: an unsupported module was defined, expected define(name, deps, module) instead got: 1 arguments to define`\r\n\r\nI've tried to extend the define() call in jspdf.debug.js but it seems that I'm doing it at the wrong place...\r\n\r\n`\r\n\r\n\r\n      jsPDF.API = { events: [] };\r\n      jsPDF.version = \"1.3.2 2016-09-30T20:33:17.116Z:jameshall\";\r\n\r\n      if (typeof define === 'function' && define.amd) {\r\n          // INFO: I've added [] to the call down here\r\n          define('jsPDF', [], function () {\r\n              return jsPDF;\r\n          });\r\n      } else if (typeof module !== 'undefined' && module.exports) {\r\n          module.exports = jsPDF;\r\n      } else {\r\n          global.jsPDF = jsPDF;\r\n      }\r\n      return jsPDF;\r\n`\r\n\r\nAny help would be highly appreciated.\r\n\r\nCheers,\r\nMichael"}}
{"actor":{"display_login":"tzhbami7"}}