{"action":"closed","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/4039","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/4039/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4039/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/4039/events","html_url":"https://github.com/openlayers/ol3/issues/4039","id":102774664,"number":4039,"title":"umdWrapper issue","user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T11:44:30Z","updated_at":"2015-08-24T21:55:44Z","closed_at":"2015-08-24T21:55:44Z","body":"Our `umdWrapper` looks like this:\r\n\r\n```js\r\nvar umdWrapper = '(function (root, factory) {\\n' +\r\n    '  if (typeof exports === \"object\") {\\n' +\r\n    '    module.exports = factory();\\n' +\r\n    '  } else if (typeof define === \"function\" && define.amd) {\\n' +\r\n    '    define([], factory);\\n' +\r\n    '  } else {\\n' +\r\n    '    root.ol = factory();\\n' +\r\n    '  }\\n' +\r\n    '}(this, function () {\\n' +\r\n    '  var OPENLAYERS = {};\\n' +\r\n    '  %output%\\n' +\r\n    '  return OPENLAYERS.ol;\\n' +\r\n    '}));\\n';\r\n```\r\n\r\nShouldn't it look like this instead:\r\n\r\n```js\r\nvar umdWrapper = '(function (root, factory) {\\n' +\r\n    '  if (typeof exports === \"object\") {\\n' +\r\n    '    module.exports = factory();\\n' +\r\n    '  } else if (typeof define === \"function\" && define.amd) {\\n' +\r\n    '    define([], factory);\\n' +\r\n    '  } else {\\n' +\r\n    '    root.ol = factory();\\n' +\r\n    '  }\\n' +\r\n    '})(this, function () {\\n' +\r\n    '  var OPENLAYERS = {};\\n' +\r\n    '  %output%\\n' +\r\n    '  return OPENLAYERS.ol;\\n' +\r\n    '});\\n';\r\n```\r\n\r\n?\r\n\r\nPay attention to the location of brackets…"}}