Permalink
Browse files

refactor remove onvalidate from TextInput and Select

  • Loading branch information...
1 parent 120981a commit b8abd21c986ea019a4cae6dfeb9ee29a384c000d @jakub-g jakub-g committed with divdavem Feb 26, 2013
Showing with 0 additions and 41 deletions.
  1. +0 −4 src/aria/widgets/CfgBeans.js
  2. +0 −16 src/aria/widgets/form/Select.js
  3. +0 −21 src/aria/widgets/form/TextInput.js
@@ -254,10 +254,6 @@ Aria.beanDefinitions({
$description : "Contains the groups to validate."
}
},
- "onvalidate" : {
- $type : "common:Callback",
- $description : "Function to be called for custom validation."
- },
"validationEvent" : {
$type : "json:Enum",
$enumValues : ["onFocus", "onBlur", "none"],
@@ -201,9 +201,6 @@ Aria.classDefinition({
aria.utils.Data.validateValue(dataholder, name, null, groups, 'onblur');
}
}
- this._onvalidate({
- popup : false
- });
}
}
this._updateValue(true);
@@ -225,19 +222,6 @@ Aria.classDefinition({
this._updateState();
},
- _onvalidate : function (arg) {
- if (this._cfg.onvalidate) {
- this.$logWarn(this.WIDGET_PROPERTY_DEPRECATION, ["onvalidate"]);
- }
- this.evalCallback(this._cfg.onvalidate);
- if (arg.popup && (this._cfg.error)) {// show errortip onfocus
- this._validationPopupShow();
- } else { // dispose of error tip
- this._validationPopupHide();
-
- }
- },
-
/**
* Internal method to handle the mousedown event
* @protected
@@ -789,24 +789,6 @@ Aria.classDefinition({
},
/**
- * The method called when calling custom validation
- * @param {Object} arg is Popup needed
- * @private
- */
- _onvalidate : function (arg) {
- if (this._cfg.onvalidate) {
- this.$logWarn(this.WIDGET_PROPERTY_DEPRECATION, ["onvalidate"]);
- this.evalCallback(this._cfg.onvalidate);
- }
-
- if (arg.popup && (this._cfg.error)) {
- this._validationPopupShow();
- } else {
- this._validationPopupHide();
- }
- },
-
- /**
* Internal method to handle the onkeydown event.
* @param {DOMEvent or aria.DomEvent} e event object (on W3C browsers) or wrapper on it
* @protected
@@ -958,9 +940,6 @@ Aria.classDefinition({
}
}
}
- this._onvalidate({
- popup : false
- });
}
}

0 comments on commit b8abd21

Please sign in to comment.