EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on January 15, 2016, 07:14:09 PM



Title: Too much recursion when calling parser
Post by: devnull on January 15, 2016, 07:14:09 PM
I can sucessfully call the parser on other objects, but when I try and call it on the validatebox or textbox I get a too much recursion error.

My guess is that the validatebox parsesr is also called by other objects and this is resulting in this recursion, but how can I solve this ?

Code:
var parser = $.fn.textbox.parseOptions;
$.fn.textbox.parseOptions = function(target){
  var me = $(target);
  var opt = parser.call(this, target);
  if (opt.multiline==false && me.hasClass('multiline')) opt.multiline=true;
  return opt;
}


Title: Re: Too much recursion when calling parser
Post by: stworthy on January 16, 2016, 01:00:47 AM
Please show a live example to demonstrate your issue.