{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1102","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1102/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1102/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1102/events","html_url":"https://github.com/Polymer/polymer/issues/1102","id":54675562,"number":1102,"title":"Cannot find function or filter","user":{"login":"rajasharan","id":299522,"avatar_url":"https://avatars.githubusercontent.com/u/299522?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasharan","html_url":"https://github.com/rajasharan","followers_url":"https://api.github.com/users/rajasharan/followers","following_url":"https://api.github.com/users/rajasharan/following{/other_user}","gists_url":"https://api.github.com/users/rajasharan/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasharan/subscriptions","organizations_url":"https://api.github.com/users/rajasharan/orgs","repos_url":"https://api.github.com/users/rajasharan/repos","events_url":"https://api.github.com/users/rajasharan/events{/privacy}","received_events_url":"https://api.github.com/users/rajasharan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-17T21:16:34Z","updated_at":"2015-01-18T21:00:00Z","closed_at":null,"body":"Below is a sample my-element which uses use custom filters. The custom filter functionality works but console shows weird errors only on page load.\r\n\r\nTill now can't find any faults in the functionality or the GUI behavior,\r\n\r\n```html\r\n<!-- Import Polymer -->\r\n<link rel=\"import\" href=\"../bower_components/polymer/polymer.html\">\r\n<link rel=\"import\" href=\"../bower_components/paper-radio-group/paper-radio-group.html\">\r\n<link rel=\"import\" href=\"../bower_components/paper-radio-button/paper-radio-button.html\">\r\n<link rel=\"import\" href=\"../bower_components/paper-slider/paper-slider.html\">\r\n\r\n<!-- Define your custom element -->\r\n<polymer-element name=\"my-element\">\r\n    <template>\r\n        <!--\r\n           -<style><style>\r\n           -->\r\n        <paper-radio-group selected=\"{{type}}\">\r\n            <paper-radio-button name=\"daily\" label=\"Daily\"></paper-radio-button>\r\n            <paper-radio-button name=\"weekly\" label=\"Weekly\"></paper-radio-button>\r\n        </paper-radio-group>\r\n\r\n        <br />\r\n        <paper-slider min=\"{{type | getMin}}\"\r\n                      max=\"{{type | getMax}}\"\r\n                      step=\"{{type | getStep}}\"\r\n                      pin=\"true\">\r\n        </paper-slider>\r\n    </template>\r\n\r\n    <script>\r\n        PolymerExpressions.prototype.getMin = function(input) {\r\n            if (input === 'daily') return 1;\r\n            else if (input === 'weekly') return 10;\r\n        };\r\n        PolymerExpressions.prototype.getMax = function(input) {\r\n            if (input === 'daily') return 1000;\r\n            else if (input === 'weekly') return 5000;\r\n        };\r\n        PolymerExpressions.prototype.getStep = function(input) {\r\n            if (input === 'daily') return 5;\r\n            else if (input === 'weekly') return 50;\r\n        };\r\n\r\n        Polymer('my-element', {\r\n            ready: function() {\r\n                this.type = 'daily';\r\n            }\r\n        });\r\n    </script>\r\n\r\n</polymer-element>\r\n\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/299522/5790396/fe66c876-9e63-11e4-972b-462313103d1f.png)"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/70425660","html_url":"https://github.com/Polymer/polymer/issues/1102#issuecomment-70425660","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1102","id":70425660,"user":{"login":"gertcuykens","id":863731,"avatar_url":"https://avatars.githubusercontent.com/u/863731?v=3","gravatar_id":"","url":"https://api.github.com/users/gertcuykens","html_url":"https://github.com/gertcuykens","followers_url":"https://api.github.com/users/gertcuykens/followers","following_url":"https://api.github.com/users/gertcuykens/following{/other_user}","gists_url":"https://api.github.com/users/gertcuykens/gists{/gist_id}","starred_url":"https://api.github.com/users/gertcuykens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gertcuykens/subscriptions","organizations_url":"https://api.github.com/users/gertcuykens/orgs","repos_url":"https://api.github.com/users/gertcuykens/repos","events_url":"https://api.github.com/users/gertcuykens/events{/privacy}","received_events_url":"https://api.github.com/users/gertcuykens/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T21:00:00Z","updated_at":"2015-01-18T21:00:00Z","body":"lol it even crashed my browser if I click on weekly"}}