fix : success is not defined bug

This commit is contained in:
wenzhixin 2016-05-08 14:49:27 +08:00
parent e03afb2436
commit fe5b56a9c2

@ -2574,16 +2574,16 @@ List - abstract class for inputs that have source option loaded from js array or
}, },
value2html: function (value, element, display, response) { value2html: function (value, element, display, response) {
var deferred = $.Deferred(); var deferred = $.Deferred(),
success = deferred.then(function () { success = function () {
if(typeof display === 'function') { if(typeof display === 'function') {
//custom display method //custom display method
display.call(element, value, this.sourceData, response); display.call(element, value, this.sourceData, response);
} else { } else {
this.value2htmlFinal(value, element); this.value2htmlFinal(value, element);
} }
deferred.resolve(); deferred.resolve();
}); };
//for null value just call success without loading source //for null value just call success without loading source
if(value === null) { if(value === null) {