From 9ebd618bf866ebc1994e2e7234010caef6940ac2 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 22 May 2017 10:23:54 +0800 Subject: [PATCH 1/2] _setValid --- bi/base.js | 8 ++++---- docs/base.js | 8 ++++---- src/base/single/editor/editor.textarea.js | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bi/base.js b/bi/base.js index cace48d53..a87574fc0 100644 --- a/bi/base.js +++ b/bi/base.js @@ -18487,10 +18487,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { return this.style; }, - setValid: function (b) { - BI.TextAreaEditor.superclass.setValid.apply(this, arguments); - this.content.setValid(b); - this.watermark && this.watermark.setValid(b); + _setValid: function (b) { + BI.TextAreaEditor.superclass._setValid.apply(this, arguments); + // this.content.setValid(b); + // this.watermark && this.watermark.setValid(b); } }); BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/docs/base.js b/docs/base.js index cace48d53..a87574fc0 100644 --- a/docs/base.js +++ b/docs/base.js @@ -18487,10 +18487,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { return this.style; }, - setValid: function (b) { - BI.TextAreaEditor.superclass.setValid.apply(this, arguments); - this.content.setValid(b); - this.watermark && this.watermark.setValid(b); + _setValid: function (b) { + BI.TextAreaEditor.superclass._setValid.apply(this, arguments); + // this.content.setValid(b); + // this.watermark && this.watermark.setValid(b); } }); BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/src/base/single/editor/editor.textarea.js b/src/base/single/editor/editor.textarea.js index 15c6bc7a1..97d94290c 100644 --- a/src/base/single/editor/editor.textarea.js +++ b/src/base/single/editor/editor.textarea.js @@ -149,10 +149,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { return this.style; }, - setValid: function (b) { - BI.TextAreaEditor.superclass.setValid.apply(this, arguments); - this.content.setValid(b); - this.watermark && this.watermark.setValid(b); + _setValid: function (b) { + BI.TextAreaEditor.superclass._setValid.apply(this, arguments); + // this.content.setValid(b); + // this.watermark && this.watermark.setValid(b); } }); BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; From 15d00c210fb469938ff9268d5b86f7a46b973bbf Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 22 May 2017 10:40:18 +0800 Subject: [PATCH 2/2] update --- bi/base.js | 9 ++------- bi/case.js | 11 +---------- docs/base.js | 9 ++------- docs/case.js | 11 +---------- src/base/single/editor/editor.js | 5 ----- src/base/single/input/input.js | 4 ++-- src/case/editor/editor.search.js | 6 +----- src/case/editor/editor.sign.js | 5 ----- 8 files changed, 9 insertions(+), 51 deletions(-) diff --git a/bi/base.js b/bi/base.js index a87574fc0..37c398684 100644 --- a/bi/base.js +++ b/bi/base.js @@ -18216,11 +18216,6 @@ BI.Editor = BI.inherit(BI.Single, { return BI.trim(this.editor.getValue()); }, - setValid: function (b) { - BI.Editor.superclass.setValid.apply(this, arguments); - this.editor.setValid(b); - }, - isEditing: function () { return this.editor.isEditing(); }, @@ -19483,8 +19478,8 @@ BI.Input = BI.inherit(BI.Single, { return this._lastValidValue; }, - setValid: function () { - BI.Input.superclass.setValid.apply(this, arguments); + _setValid: function () { + BI.Input.superclass._setValid.apply(this, arguments); if (this.isValid()) { this._lastValidValue = this.getValue(); this.element.removeClass("bi-input-error"); diff --git a/bi/case.js b/bi/case.js index 668dfc064..240ab1d94 100644 --- a/bi/case.js +++ b/bi/case.js @@ -5184,11 +5184,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { this.clear.visible(); } }, - - setValid: function (b) { - this.editor.setValid(b); - }, - + isEditing: function () { return this.editor.isEditing(); }, @@ -5867,11 +5863,6 @@ BI.SignEditor = BI.inherit(BI.Widget, { return this.editor.isValid(); }, - setValid: function (v) { - BI.SignEditor.superclass.setValid.apply(this, arguments); - this.editor.setValid(v); - }, - setErrorText: function (text) { this.editor.setErrorText(text); }, diff --git a/docs/base.js b/docs/base.js index a87574fc0..37c398684 100644 --- a/docs/base.js +++ b/docs/base.js @@ -18216,11 +18216,6 @@ BI.Editor = BI.inherit(BI.Single, { return BI.trim(this.editor.getValue()); }, - setValid: function (b) { - BI.Editor.superclass.setValid.apply(this, arguments); - this.editor.setValid(b); - }, - isEditing: function () { return this.editor.isEditing(); }, @@ -19483,8 +19478,8 @@ BI.Input = BI.inherit(BI.Single, { return this._lastValidValue; }, - setValid: function () { - BI.Input.superclass.setValid.apply(this, arguments); + _setValid: function () { + BI.Input.superclass._setValid.apply(this, arguments); if (this.isValid()) { this._lastValidValue = this.getValue(); this.element.removeClass("bi-input-error"); diff --git a/docs/case.js b/docs/case.js index 668dfc064..240ab1d94 100644 --- a/docs/case.js +++ b/docs/case.js @@ -5184,11 +5184,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { this.clear.visible(); } }, - - setValid: function (b) { - this.editor.setValid(b); - }, - + isEditing: function () { return this.editor.isEditing(); }, @@ -5867,11 +5863,6 @@ BI.SignEditor = BI.inherit(BI.Widget, { return this.editor.isValid(); }, - setValid: function (v) { - BI.SignEditor.superclass.setValid.apply(this, arguments); - this.editor.setValid(v); - }, - setErrorText: function (text) { this.editor.setErrorText(text); }, diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index b352506e2..a0a684474 100644 --- a/src/base/single/editor/editor.js +++ b/src/base/single/editor/editor.js @@ -292,11 +292,6 @@ BI.Editor = BI.inherit(BI.Single, { return BI.trim(this.editor.getValue()); }, - setValid: function (b) { - BI.Editor.superclass.setValid.apply(this, arguments); - this.editor.setValid(b); - }, - isEditing: function () { return this.editor.isEditing(); }, diff --git a/src/base/single/input/input.js b/src/base/single/input/input.js index 06d59168e..48c17ebcb 100644 --- a/src/base/single/input/input.js +++ b/src/base/single/input/input.js @@ -241,8 +241,8 @@ BI.Input = BI.inherit(BI.Single, { return this._lastValidValue; }, - setValid: function () { - BI.Input.superclass.setValid.apply(this, arguments); + _setValid: function () { + BI.Input.superclass._setValid.apply(this, arguments); if (this.isValid()) { this._lastValidValue = this.getValue(); this.element.removeClass("bi-input-error"); diff --git a/src/case/editor/editor.search.js b/src/case/editor/editor.search.js index 1cad5eb31..4658b9d9f 100644 --- a/src/case/editor/editor.search.js +++ b/src/case/editor/editor.search.js @@ -157,11 +157,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { this.clear.visible(); } }, - - setValid: function (b) { - this.editor.setValid(b); - }, - + isEditing: function () { return this.editor.isEditing(); }, diff --git a/src/case/editor/editor.sign.js b/src/case/editor/editor.sign.js index 13e39bc73..2c148209e 100644 --- a/src/case/editor/editor.sign.js +++ b/src/case/editor/editor.sign.js @@ -206,11 +206,6 @@ BI.SignEditor = BI.inherit(BI.Widget, { return this.editor.isValid(); }, - setValid: function (v) { - BI.SignEditor.superclass.setValid.apply(this, arguments); - this.editor.setValid(v); - }, - setErrorText: function (text) { this.editor.setErrorText(text); },