EasyUI Forum
October 22, 2025, 06:28:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Too much recursion when calling parser  (Read 6312 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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;
}
« Last Edit: January 15, 2016, 07:35:25 PM by devnull » Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 16, 2016, 01:00:47 AM »

Please show a live example to demonstrate your issue.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!