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

Unified Diff: third_party/polymer/v0_8/components-chromium/paper-input/paper-input-char-counter-extracted.js

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 7 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/v0_8/components-chromium/paper-input/paper-input-char-counter-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-char-counter-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-char-counter-extracted.js
deleted file mode 100644
index 673f5e79bf900bea273f12f1a0569048f6213f9b..0000000000000000000000000000000000000000
--- a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-char-counter-extracted.js
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-(function() {
-
- Polymer({
-
- is: 'paper-input-char-counter',
-
- behaviors: [
- Polymer.PaperInputAddonBehavior
- ],
-
- properties: {
-
- _charCounterStr: {
- type: String,
- value: '0'
- }
-
- },
-
- update: function(state) {
- if (!state.inputElement) {
- return;
- }
-
- state.value = state.value || '';
-
- // Account for the textarea's new lines.
- var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
-
- if (state.inputElement.hasAttribute('maxlength')) {
- str += '/' + state.inputElement.getAttribute('maxlength');
- }
- this._charCounterStr = str;
- }
-
- });
-
-})();
-

Powered by Google App Engine
This is Rietveld 408576698