response param in display method

This commit is contained in:
vitalets
2012-12-28 20:01:24 +04:00
parent 8bb879a1fc
commit bd44849e13
5 changed files with 37 additions and 17 deletions

View File

@@ -34,12 +34,12 @@ List - abstract class for inputs that have source option loaded from js array or
return null; //can't set value by text
},
value2html: function (value, element, display) {
value2html: function (value, element, display, response) {
var deferred = $.Deferred(),
success = function () {
if(typeof display === 'function') {
//custom display method
display.call(element, value, this.sourceData);
display.call(element, value, this.sourceData, response);
} else {
this.value2htmlFinal(value, element);
}