{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2471","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2471/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2471/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2471/events","html_url":"https://github.com/Starcounter/Starcounter/issues/2471","id":53844267,"number":2471,"title":"Puppetjs interfers with local objects ","user":{"login":"Ripipip","id":7534151,"avatar_url":"https://avatars.githubusercontent.com/u/7534151?v=3","gravatar_id":"","url":"https://api.github.com/users/Ripipip","html_url":"https://github.com/Ripipip","followers_url":"https://api.github.com/users/Ripipip/followers","following_url":"https://api.github.com/users/Ripipip/following{/other_user}","gists_url":"https://api.github.com/users/Ripipip/gists{/gist_id}","starred_url":"https://api.github.com/users/Ripipip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ripipip/subscriptions","organizations_url":"https://api.github.com/users/Ripipip/orgs","repos_url":"https://api.github.com/users/Ripipip/repos","events_url":"https://api.github.com/users/Ripipip/events{/privacy}","received_events_url":"https://api.github.com/users/Ripipip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-09T08:25:08Z","updated_at":"2015-01-11T15:32:42Z","closed_at":"2015-01-11T15:32:42Z","body":"We are trying to create a regular polymer component for just changing tabs that shouldn't be shared with the server. \r\n\r\nHowever, with the implementation below we can't change tabs without getting an error from puppetjs. \r\n\r\nTrying to add ignore (according to this documentation: https://github.com/PuppetJs/PuppetJs#ignoring-local-changes-ignoreadd) doesn't work because puppetjs in the Launcher points to the root template and the content of our app isn't in the root template. \r\n\r\nSo we either want to know why the component below is shared with the server - and how we can avoid it - or how we can make the ignoreadd feature in puppetjs work in our app. \r\n\r\nImplementation:\r\n\r\n    <adfenix-tabs selected=\"{{_selected}}\">\r\n        <adfenix-tab>Test</adfenix-tab>\r\n        <adfenix-tab>Test2</adfenix-tab>\r\n    </adfenix-tabs>\r\n    <span>selected: {{selected}} {{ item }}</span>\r\n\r\nComponent: \r\n    <link rel=\"import\" href=\"/sys/core-selector/core-selector.html\">\r\n\r\n    <polymer-element\r\n        name=\"adfenix-tabs\"\r\n        extends=\"core-selector\"\r\n        role=\"tablist\"\r\n        flex horizontal layout>\r\n    <template id=\"tabs\">\r\n        <shadow></shadow>\r\n    </template>\r\n    <style>\r\n        adfenix-tabs  {\r\n            background: beige;\r\n        }\r\n    </style>\r\n    <script>\r\n        Polymer('adfenix-tabs', {\r\n            ready: function () {\r\n                this.super();\r\n                this.selectedIndex = 1;\r\n            }\r\n        });\r\n    </script>\r\n    </polymer-element>\r\n    <polymer-element name=\"adfenix-tab\">\r\n    <template>\r\n        <div class=\"tab\" flex auto center-center horizontal layout>\r\n            <content></content>\r\n        </div>\r\n    </template>\r\n    <style>\r\n        adfenix-tab {\r\n            cursor: pointer;\r\n            user-select: none;\r\n            padding: 5px;\r\n            border: 1px solid #E2E2E2;\r\n        }\r\n        adfenix-tab.selected {\r\n            color: red;\r\n        }\r\n    </style>\r\n    <script>\r\n        Polymer({});\r\n    </script>\r\n    </polymer-element>\r\n"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/69498297","html_url":"https://github.com/Starcounter/Starcounter/issues/2471#issuecomment-69498297","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2471","id":69498297,"user":{"login":"tomalec","id":17435,"avatar_url":"https://avatars.githubusercontent.com/u/17435?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalec","html_url":"https://github.com/tomalec","followers_url":"https://api.github.com/users/tomalec/followers","following_url":"https://api.github.com/users/tomalec/following{/other_user}","gists_url":"https://api.github.com/users/tomalec/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalec/subscriptions","organizations_url":"https://api.github.com/users/tomalec/orgs","repos_url":"https://api.github.com/users/tomalec/repos","events_url":"https://api.github.com/users/tomalec/events{/privacy}","received_events_url":"https://api.github.com/users/tomalec/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T15:32:42Z","updated_at":"2015-01-11T15:32:42Z","body":"The issue occurred to be wrong property name (one without which didn't start with `_`) in JSON view-model.\r\n\r\nDuplicated HTML code was not an issue as it was original template content + stamped instance."}}