Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#883 closed bug (fixed)

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:
Blocked by: Blocking:

Description (last modified by joern)

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 (1)

comment:1 Changed 10 years ago by joern

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

Fixed in revision 1241.

Note: See TracTickets for help on using tickets.