{"action":"created","issue":{"url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/8","repository_url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents","labels_url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/8/comments","events_url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/8/events","html_url":"https://github.com/patternfly-webcomponents/patternfly-webcomponents/issues/8","id":192784757,"number":8,"title":"We'd better keep jQuery in webcomponents version of patternfly","user":{"login":"dabeng","id":5689075,"avatar_url":"https://avatars.githubusercontent.com/u/5689075?v=3","gravatar_id":"","url":"https://api.github.com/users/dabeng","html_url":"https://github.com/dabeng","followers_url":"https://api.github.com/users/dabeng/followers","following_url":"https://api.github.com/users/dabeng/following{/other_user}","gists_url":"https://api.github.com/users/dabeng/gists{/gist_id}","starred_url":"https://api.github.com/users/dabeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabeng/subscriptions","organizations_url":"https://api.github.com/users/dabeng/orgs","repos_url":"https://api.github.com/users/dabeng/repos","events_url":"https://api.github.com/users/dabeng/events{/privacy}","received_events_url":"https://api.github.com/users/dabeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-01T08:42:42Z","updated_at":"2016-12-15T17:54:03Z","closed_at":"2016-12-08T08:25:08Z","body":"I don't think jQuery is in conflict with ES2015 or Web Components. In fact, jQuery can save us a lot of effort to handle dom modification, node searching or event bindings. We just need to introduce jQuery as a helper object with \r\n```js\r\nimport $ from 'jquery';\r\n```\r\nMaybe you guys can imagine that how short the code lines will be if we refctor the folowing code snippets with jQuery.\r\n```js\r\n  _initPersistent () {\r\n    let self = this;\r\n    let nodes = this._getNodes('button.close');\r\n    let el = nodes[0];\r\n    if (this.getAttribute(\"persistent\") === \"true\") {\r\n      this.classList.add(\"alert-dismissable\");\r\n      if (el !== undefined) {\r\n        el.classList.remove(\"hidden\");\r\n        el.setAttribute('onclick', this.getAttribute(\"persistent-callback-fn\"));\r\n      }\r\n    } else {\r\n      this.classList.remove(\"alert-dismissable\");\r\n      if (el !== undefined) {\r\n        el.classList.add(\"hidden\");\r\n      }\r\n    }\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/comments/267395190","html_url":"https://github.com/patternfly-webcomponents/patternfly-webcomponents/issues/8#issuecomment-267395190","issue_url":"https://api.github.com/repos/patternfly-webcomponents/patternfly-webcomponents/issues/8","id":267395190,"user":{"login":"priley86","id":4237045,"avatar_url":"https://avatars.githubusercontent.com/u/4237045?v=3","gravatar_id":"","url":"https://api.github.com/users/priley86","html_url":"https://github.com/priley86","followers_url":"https://api.github.com/users/priley86/followers","following_url":"https://api.github.com/users/priley86/following{/other_user}","gists_url":"https://api.github.com/users/priley86/gists{/gist_id}","starred_url":"https://api.github.com/users/priley86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priley86/subscriptions","organizations_url":"https://api.github.com/users/priley86/orgs","repos_url":"https://api.github.com/users/priley86/repos","events_url":"https://api.github.com/users/priley86/events{/privacy}","received_events_url":"https://api.github.com/users/priley86/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:54:03Z","updated_at":"2016-12-15T17:54:03Z","body":"@dabeng if you'd like to see an example shim in React or Angular, those are coming soon too."}}
{"actor":{"display_login":"priley86"}}