{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/docs/issues/1539","repository_url":"https://api.github.com/repos/Polymer/docs","labels_url":"https://api.github.com/repos/Polymer/docs/issues/1539/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/docs/issues/1539/comments","events_url":"https://api.github.com/repos/Polymer/docs/issues/1539/events","html_url":"https://github.com/Polymer/docs/issues/1539","id":133919677,"number":1539,"title":"The examples in events.html, gestures section, don't do anything with this.message","user":{"login":"mercmobily","id":2128734,"avatar_url":"https://avatars.githubusercontent.com/u/2128734?v=3","gravatar_id":"","url":"https://api.github.com/users/mercmobily","html_url":"https://github.com/mercmobily","followers_url":"https://api.github.com/users/mercmobily/followers","following_url":"https://api.github.com/users/mercmobily/following{/other_user}","gists_url":"https://api.github.com/users/mercmobily/gists{/gist_id}","starred_url":"https://api.github.com/users/mercmobily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercmobily/subscriptions","organizations_url":"https://api.github.com/users/mercmobily/orgs","repos_url":"https://api.github.com/users/mercmobily/repos","events_url":"https://api.github.com/users/mercmobily/events{/privacy}","received_events_url":"https://api.github.com/users/mercmobily/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T08:52:27Z","updated_at":"2016-02-16T17:42:09Z","closed_at":null,"body":"Hi,\r\n\r\nHave a look at the code example here: https://www.polymer-project.org/1.0/docs/devguide/events.html#gestures\r\n\r\nThe example currently sets this.message, but never does anything with it (!). Either we use `console.log`, or a `message` property that gets bound to the template.\r\n\r\nIf you go for the second choice, here is the code I propose. If it looks good to you, I will create a PR. If I am missing something, please say so :dancer: \r\n\r\n````\r\n<dom-module id=\"drag-me\">\r\n\r\n  <template>\r\n\r\n    <style>\r\n      #dragme {\r\n        width: 50px;\r\n        height: 50px;\r\n        background: gray;\r\n      }\r\n    </style>\r\n\r\n    <div id=\"dragme\" on-track=\"handleTrack\"></div>\r\n    <p>{{message}}</p>\r\n\r\n  </template>\r\n\r\n  <script>\r\n\r\n    Polymer({\r\n\r\n      is: 'drag-me',\r\n      properties: {\r\n        message: String\r\n      },\r\n      \r\n      handleTrack: function(e) {\r\n        switch(e.detail.state) {\r\n          case 'start':\r\n            this.message = 'Tracking started!';\r\n            break;\r\n          case 'track':\r\n            this.message = 'Tracking in progress... ' +\r\n              e.detail.x + ', ' + e.detail.y;\r\n            break;\r\n          case 'end':\r\n            this.message = 'Tracking ended!';\r\n            break;\r\n        }\r\n      }\r\n\r\n    });\r\n\r\n  </script>\r\n\r\n</dom-module>\r\n"},"comment":{"url":"https://api.github.com/repos/Polymer/docs/issues/comments/184793808","html_url":"https://github.com/Polymer/docs/issues/1539#issuecomment-184793808","issue_url":"https://api.github.com/repos/Polymer/docs/issues/1539","id":184793808,"user":{"login":"arthurevans","id":1149422,"avatar_url":"https://avatars.githubusercontent.com/u/1149422?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurevans","html_url":"https://github.com/arthurevans","followers_url":"https://api.github.com/users/arthurevans/followers","following_url":"https://api.github.com/users/arthurevans/following{/other_user}","gists_url":"https://api.github.com/users/arthurevans/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurevans/subscriptions","organizations_url":"https://api.github.com/users/arthurevans/orgs","repos_url":"https://api.github.com/users/arthurevans/repos","events_url":"https://api.github.com/users/arthurevans/events{/privacy}","received_events_url":"https://api.github.com/users/arthurevans/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T17:42:09Z","updated_at":"2016-02-16T17:42:09Z","body":"Hi Merc,\r\n\r\nYep, you're right. This is actually a formatting bug. If you edit that section, you'll see the text looks like this:\r\n\r\n        <div id=\"dragme\">{{message}}</div>\r\n\r\nHowever, these brackets get eaten by Jekyll. Wherever we include bindings\r\nin code examples in the site, we need to escape them like this:\r\n\r\n        <div id=\"dragme\">{%raw%}{{message}}{%endraw%}</div>\r\n\r\nCan you do a PR?"}}