Skip to main content

Bug Tracker

Side navigation

#883 closed bug (fixed)

Opened January 25, 2007 06:01AM UTC

Closed January 31, 2007 09:37PM UTC

Last modified June 20, 2007 02:13AM UTC

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

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

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();
	});
});
Attachments (0)
Change History (1)

Changed January 31, 2007 09:37PM UTC by joern comment:1

description: 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();\ });\ });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();\ });\ });\ }}}
resolution: → fixed
status: newclosed

Fixed in revision 1241.