{"action":"created","issue":{"url":"https://api.github.com/repos/Formstone/Formstone/issues/84","repository_url":"https://api.github.com/repos/Formstone/Formstone","labels_url":"https://api.github.com/repos/Formstone/Formstone/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/Formstone/Formstone/issues/84/comments","events_url":"https://api.github.com/repos/Formstone/Formstone/issues/84/events","html_url":"https://github.com/Formstone/Formstone/issues/84","id":108069027,"number":84,"title":"core:use webpack error","user":{"login":"minuux","id":1884625,"avatar_url":"https://avatars.githubusercontent.com/u/1884625?v=3","gravatar_id":"","url":"https://api.github.com/users/minuux","html_url":"https://github.com/minuux","followers_url":"https://api.github.com/users/minuux/followers","following_url":"https://api.github.com/users/minuux/following{/other_user}","gists_url":"https://api.github.com/users/minuux/gists{/gist_id}","starred_url":"https://api.github.com/users/minuux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minuux/subscriptions","organizations_url":"https://api.github.com/users/minuux/orgs","repos_url":"https://api.github.com/users/minuux/repos","events_url":"https://api.github.com/users/minuux/events{/privacy}","received_events_url":"https://api.github.com/users/minuux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Formstone/Formstone/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-24T06:44:05Z","updated_at":"2016-03-13T21:09:27Z","closed_at":"2015-09-27T23:22:22Z","body":"Hi\r\n\r\nI use webpack pack my code,but chrome say \r\n```\r\n Cannot read property 'navigator' of undefined\r\n```\r\nmy code:\r\n```\r\nvar $ = require('jquery');\r\nrequire('formstone/src/js/core.js');\r\nrequire('formstone/src/js/tooltip.js');\r\nrequire('formstone/src/less/tooltip.less');\r\n```\r\nI check core.js,find the **this** is undefined\r\n```\r\nvar Formstone = this.Formstone = (function ($, window, document, undefined) {\r\n\r\n})(jQuery, this, document);\r\n```\r\nso I changed above the code as below,then it work\r\n```\r\nvar Formstone =window.Formstone = (function ($, window, document, undefined) {\r\n\r\n})(jQuery, window, document);\r\n```\r\n\r\nDo you have a better way？\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Formstone/Formstone/issues/comments/196054974","html_url":"https://github.com/Formstone/Formstone/issues/84#issuecomment-196054974","issue_url":"https://api.github.com/repos/Formstone/Formstone/issues/84","id":196054974,"user":{"login":"benplum","id":1130075,"avatar_url":"https://avatars.githubusercontent.com/u/1130075?v=3","gravatar_id":"","url":"https://api.github.com/users/benplum","html_url":"https://github.com/benplum","followers_url":"https://api.github.com/users/benplum/followers","following_url":"https://api.github.com/users/benplum/following{/other_user}","gists_url":"https://api.github.com/users/benplum/gists{/gist_id}","starred_url":"https://api.github.com/users/benplum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benplum/subscriptions","organizations_url":"https://api.github.com/users/benplum/orgs","repos_url":"https://api.github.com/users/benplum/repos","events_url":"https://api.github.com/users/benplum/events{/privacy}","received_events_url":"https://api.github.com/users/benplum/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T21:09:27Z","updated_at":"2016-03-13T21:09:27Z","body":"Any details on the error you're experiencing? "}}