OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 Polymer('issue-banner', { | |
6 publish: { | |
7 /** | |
8 * The issue to show. | |
9 * | |
10 * @attribute issue | |
11 * @type {media_router.Issue} | |
12 * @default: undefined | |
13 */ | |
14 issue: undefined | |
Jeremy Klein
2015/04/06 18:49:58
nit: The convention I've seen for this has been to
apacible
2015/04/06 21:02:44
Done.
| |
15 }, | |
16 | |
17 created: function() { | |
18 this.issue = undefined; | |
Jeremy Klein
2015/04/06 18:49:57
You don't need to do this unless you're actually i
apacible
2015/04/06 21:02:43
Done.
| |
19 }, | |
20 | |
21 onClickAction: function(event, detail, sender) { | |
Jeremy Klein
2015/04/06 18:49:58
nit: JSDocs
apacible
2015/04/06 21:02:44
Added.
| |
22 this.fire('issue-action-click', { | |
23 id: this.issue.id, | |
24 actionType: parseInt(sender.title), | |
25 helpURL: this.issue.helpURL | |
26 }); | |
27 } | |
28 }); | |
OLD | NEW |