Bug Tracker

Modify

Ticket #883 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

There could be scenarios where value has no properties inside the prop function.

Reported by: sajith.ml@… Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: prop Cc:
Blocking: Blocked by:

Description (last modified by joern) (diff)

On Line 318, inside the prop function, we are checking "if ( value.constructor == Number....". This could throw an error in some scenarios where value has no properties at all. For me, this happened here,

$(document).ready(function() {
	$("form.valdiate").each(function() {
			$(this).attr({ target: $(this).attr("onsubmit")});  // very weird way for a callback after form validation:)
			$(this).attr({ onsubmit: ""});
			$(this).validate();
	});
});

Change History

comment:1 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

Fixed in revision 1241.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.