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: null | |
13 */ | |
14 issue: null | |
15 }, | |
16 | |
17 created: function() { | |
Jeremy Klein
2015/04/06 21:07:32
You can remove this whole function.
apacible
2015/04/06 21:28:44
Done.
| |
18 this.issue; | |
19 }, | |
20 | |
21 /** | |
22 * Fires an issue-action-click event. This is called when an issue action | |
23 * is clicked. | |
24 * | |
25 * @this {issue-banner} | |
Jeremy Klein
2015/04/06 21:07:32
Do you need this?
apacible
2015/04/06 21:28:44
Removed.
| |
26 * @param {!Event} event The event object. | |
27 * @param {Object} detail The details of the event. | |
28 * @param {!Element} sender Reference to clicked node. | |
29 */ | |
30 onClickAction: function(event, detail, sender) { | |
31 this.fire('issue-action-click', { | |
32 id: this.issue.id, | |
33 actionType: parseInt(sender.title), | |
34 helpURL: this.issue.helpURL | |
35 }); | |
36 } | |
37 }); | |
OLD | NEW |