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

Unified Diff: third_party/polymer/components-chromium/core-input/core-input-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, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/components-chromium/core-input/core-input-extracted.js
diff --git a/third_party/polymer/components-chromium/core-input/core-input-extracted.js b/third_party/polymer/components-chromium/core-input/core-input-extracted.js
deleted file mode 100644
index 651611ebeeec8bb103f1e22778a5e9b774e688de..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-input/core-input-extracted.js
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
- Polymer('core-input', {
-
- publish: {
-
- /**
- * The "committed" value of the input, ie. the input value when the user
- * hits the "enter" key or blurs the input after changing the value. You
- * can bind to this value instead of listening for the "change" event.
- * Setting this property has no effect on the input value.
- *
- * @attribute committedValue
- * @type string
- * @default ''
- */
- committedValue: '',
-
- /**
- * Set to true to prevent invalid input from being entered.
- *
- * @attribute preventInvalidInput
- * @type boolean
- * @default false
- */
- preventInvalidInput: false
-
- },
-
- previousValidInput: '',
-
- eventDelegates: {
- input: 'inputAction',
- change: 'changeAction'
- },
-
- ready: function() {
- /* set ARIA attributes */
- this.disabledHandler();
- this.placeholderHandler();
- },
-
- attributeChanged: function(attr, old) {
- if (this[attr + 'Handler']) {
- this[attr + 'Handler'](old);
- }
- },
-
- disabledHandler: function() {
- if (this.disabled) {
- this.setAttribute('aria-disabled', '');
- } else {
- this.removeAttribute('aria-disabled');
- }
- },
-
- placeholderHandler: function() {
- if (this.placeholder) {
- this.setAttribute('aria-label', this.placeholder);
- } else {
- this.removeAttribute('aria-label');
- }
- },
-
- /**
- * Commits the `value` to `committedValue`
- *
- * @method commit
- */
- commit: function() {
- this.committedValue = this.value;
- },
-
- changeAction: function() {
- this.commit();
- },
-
- inputAction: function(e) {
- if (this.preventInvalidInput) {
- if (!e.target.validity.valid) {
- e.target.value = this.previousValidInput;
- } else {
- this.previousValidInput = e.target.value;
- }
- }
- }
-
- });
-

Powered by Google App Engine
This is Rietveld 408576698