{"action":"created","issue":{"url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2673","repository_url":"https://api.github.com/repos/orbeon/orbeon-forms","labels_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2673/labels{/name}","comments_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2673/comments","events_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2673/events","html_url":"https://github.com/orbeon/orbeon-forms/issues/2673","id":145228415,"number":2673,"title":"Don't use YAHOO library to create component classes","user":{"login":"ebruchez","id":105769,"avatar_url":"https://avatars.githubusercontent.com/u/105769?v=3","gravatar_id":"","url":"https://api.github.com/users/ebruchez","html_url":"https://github.com/ebruchez","followers_url":"https://api.github.com/users/ebruchez/followers","following_url":"https://api.github.com/users/ebruchez/following{/other_user}","gists_url":"https://api.github.com/users/ebruchez/gists{/gist_id}","starred_url":"https://api.github.com/users/ebruchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebruchez/subscriptions","organizations_url":"https://api.github.com/users/ebruchez/orgs","repos_url":"https://api.github.com/users/ebruchez/repos","events_url":"https://api.github.com/users/ebruchez/events{/privacy}","received_events_url":"https://api.github.com/users/ebruchez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orbeon/orbeon-forms/labels/Maintenance","name":"Maintenance","color":"ededed"},{"url":"https://api.github.com/repos/orbeon/orbeon-forms/labels/XBL%20Components","name":"XBL Components","color":"ededed"},{"url":"https://api.github.com/repos/orbeon/orbeon-forms/labels/XBL%20Engine","name":"XBL Engine","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-01T16:45:47Z","updated_at":"2016-08-15T23:54:03Z","closed_at":"2016-08-15T23:54:03Z","body":"See the current [doc](http://doc.orbeon.com/xforms/xbl/javascript.html). We call for using the following:\r\n\r\n```javascript\r\nYAHOO.namespace(\"xbl.fr\");\r\nYAHOO.xbl.fr.Currency = function() {};\r\nORBEON.xforms.XBL.declareClass(YAHOO.xbl.fr.Currency, \"xbl-fr-currency\");\r\nYAHOO.xbl.fr.Currency.prototype = {\r\n    ...\r\n}\r\n```\r\n\r\nWe should:\r\n\r\n- not require anything prefixed by `YAHOO`\r\n- recommend a modern way of creating classes\r\n    - with plain JavaScript\r\n    - with ES6\r\n    - maybe show [Traceur](https://github.com/google/traceur-compiler) or [BabelJS](https://babeljs.io/)\r\n- update our components"},"comment":{"url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/comments/239964077","html_url":"https://github.com/orbeon/orbeon-forms/issues/2673#issuecomment-239964077","issue_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2673","id":239964077,"user":{"login":"ebruchez","id":105769,"avatar_url":"https://avatars.githubusercontent.com/u/105769?v=3","gravatar_id":"","url":"https://api.github.com/users/ebruchez","html_url":"https://github.com/ebruchez","followers_url":"https://api.github.com/users/ebruchez/followers","following_url":"https://api.github.com/users/ebruchez/following{/other_user}","gists_url":"https://api.github.com/users/ebruchez/gists{/gist_id}","starred_url":"https://api.github.com/users/ebruchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebruchez/subscriptions","organizations_url":"https://api.github.com/users/ebruchez/orgs","repos_url":"https://api.github.com/users/ebruchez/repos","events_url":"https://api.github.com/users/ebruchez/events{/privacy}","received_events_url":"https://api.github.com/users/ebruchez/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T23:54:03Z","updated_at":"2016-08-15T23:54:03Z","body":"That's [documented](http://doc.orbeon.com/xforms/xbl/javascript.html), so closing this bug."}}
{"actor":{"display_login":"ebruchez"}}