Bug Tracker

Ticket #883 (closed bug: fixed)

Opened 8 years ago

Last modified 8 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 8 years ago by joern

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

Fixed in revision 1241.

Note: See TracTickets for help on using tickets.