Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: third_party/polymer/components-chromium/paper-checkbox/paper-checkbox-extracted.js

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1
2
3 Polymer('paper-checkbox', {
4
5 /**
6 * Fired when the checked state changes due to user interaction.
7 *
8 * @event change
9 */
10
11 /**
12 * Fired when the checked state changes.
13 *
14 * @event core-change
15 */
16
17 toggles: true,
18
19 checkedChanged: function() {
20 this.$.checkbox.classList.toggle('checked', this.checked);
21 this.setAttribute('aria-checked', this.checked ? 'true': 'false');
22 this.$.checkmark.classList.toggle('hidden', !this.checked);
23 this.fire('core-change');
24 },
25
26 checkboxAnimationEnd: function() {
27 var cl = this.$.checkmark.classList;
28 cl.toggle('hidden', !this.checked && cl.contains('hidden'));
29 }
30
31 });
32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698