{"action":"created","issue":{"url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/14","repository_url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder","labels_url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/14/comments","events_url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/14/events","html_url":"https://github.com/TotallyInformation/node-red-contrib-uibuilder/issues/14","id":263724933,"number":14,"title":"Webpack issues","user":{"login":"colinl","id":38307,"avatar_url":"https://avatars3.githubusercontent.com/u/38307?v=4","gravatar_id":"","url":"https://api.github.com/users/colinl","html_url":"https://github.com/colinl","followers_url":"https://api.github.com/users/colinl/followers","following_url":"https://api.github.com/users/colinl/following{/other_user}","gists_url":"https://api.github.com/users/colinl/gists{/gist_id}","starred_url":"https://api.github.com/users/colinl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinl/subscriptions","organizations_url":"https://api.github.com/users/colinl/orgs","repos_url":"https://api.github.com/users/colinl/repos","events_url":"https://api.github.com/users/colinl/events{/privacy}","received_events_url":"https://api.github.com/users/colinl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-08T15:13:36Z","updated_at":"2017-10-08T15:18:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In the process of using uibuilder with webpack I have come across a few minor issues. I will detail these once I have sorted them all. I have a strange one though that I don't understand.\r\nIn uibuilder.js there are many lines like\r\n`debug && console.log(...)`\r\nStrictly I think this should read\r\n`self.debug && console.log(...)`\r\nWhen not using webpack it works fine without the self. When using webpack to bundle everything up it does not work without the self. I always like to understand what is going on and (with webpack) if I do\r\n`console.log(debug)`\r\nI see\r\n`debug function debug(type,msg) {\r\n    if ( !uibuilder.get('debug') ) return\r\n    let myLog = {}\r\n    switch ( type ) {\r\n        case 'error':\r\n            myLog = console.error\r\n            break\r\n        case 'info':\r\n            myLog = console.info\r\n            break\r\n        case 'dir':\r\n            myLog = console.dir\r\n            break\r\n        default:\r\n            myLog = console.log\r\n    }\r\n    myLog(msg)\r\n}`\r\nNow I can't find that code anywhere. Does it make sense to you?\r\n"},"comment":{"url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/comments/335013578","html_url":"https://github.com/TotallyInformation/node-red-contrib-uibuilder/issues/14#issuecomment-335013578","issue_url":"https://api.github.com/repos/TotallyInformation/node-red-contrib-uibuilder/issues/14","id":335013578,"user":{"login":"colinl","id":38307,"avatar_url":"https://avatars3.githubusercontent.com/u/38307?v=4","gravatar_id":"","url":"https://api.github.com/users/colinl","html_url":"https://github.com/colinl","followers_url":"https://api.github.com/users/colinl/followers","following_url":"https://api.github.com/users/colinl/following{/other_user}","gists_url":"https://api.github.com/users/colinl/gists{/gist_id}","starred_url":"https://api.github.com/users/colinl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinl/subscriptions","organizations_url":"https://api.github.com/users/colinl/orgs","repos_url":"https://api.github.com/users/colinl/repos","events_url":"https://api.github.com/users/colinl/events{/privacy}","received_events_url":"https://api.github.com/users/colinl/received_events","type":"User","site_admin":false},"created_at":"2017-10-08T15:18:31Z","updated_at":"2017-10-08T15:18:31Z","author_association":"CONTRIBUTOR","body":"It's ok, I have found it (in uibuilderfe.js). Don't know why me search last time failed. Also don't know why it works ok when webpack not being used."}}
{"actor":{"display_login":"colinl"}}