[jQuery] possible bug: css(property) function

[jQuery] possible bug: css(property) function

I don't know it this is considered a bug or not but, hasn't anyone noticed that if you try to access a css property through the <span style="font-family: courier new,monospace; font-weight: bold;">.css(property)</span>
function to an object that doesn't exist the whole application crashes?I found out when I used
<span style="font-family: courier new,monospace;">var numCharDisp = parseInt(<span style="font-weight: bold; font-family: courier new,monospace;">
$("#char_nav").css("width")</span>)/parseInt(<span style="font-weight: bold; font-family: courier new,monospace;">$("#char_nav img").css("width")</span>);</span>
and I still hadn't implemented #char_nav. Firebug gave me this error message:
<span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><div style="font-family: courier new,monospace;" class="errorTitle">
elem has no properties</div><div style="font-family: courier new,monospace;" class="errorTrace">
<div class="objectBox objectBox-stackFrame"><a style="font-family: courier new,monospace;" class="objectLink">e</a><span style="font-family: courier new,monospace;">(</span><span style="font-family: courier new,monospace;" class="objectBox objectBox-undefined">
undefined</span><span style="font-family: courier new,monospace;" class="arrayComma">, </span><span style="font-family: courier new,monospace;" class="objectBox objectBox-string">"width"</span><span style="font-family: courier new,monospace;" class="arrayComma">
, </span><span class="objectBox objectBox-undefined"><span style="font-family: courier new,monospace;">undefined</span></span><span style="font-family: courier new,monospace;" class="arrayComma"></span><span style="font-family: courier new,monospace;">
)</span><span style="font-family: courier new,monospace;" class="objectLink-sourceLink objectLink">jquery.js (line 1)</span></div><div style="font-family: courier new,monospace;" class="objectBox objectBox-stackFrame"><a class="objectLink">
e</a>(<span class="objectBox objectBox-string">"width"</span><span class="arrayComma">, </span><span class="objectBox objectBox-undefined">undefined</span><span class="arrayComma">, </span><span class="objectBox objectBox-string">
"curCSS"</span><span class="arrayComma"></span>)<span class="objectLink-sourceLink objectLink">jquery.js (line 1)</span></div><div style="font-family: courier new,monospace;" class="objectBox objectBox-stackFrame">
<a class="objectLink">e</a>(<span class="objectBox objectBox-string">"width"</span><span class="arrayComma">, </span><span class="objectBox objectBox-undefined">undefined</span><span class="arrayComma"></span>)<span class="objectLink-sourceLink objectLink">
jquery.js (line 1)</span></div><div style="font-family: courier new,monospace;" class="objectBox objectBox-stackFrame"><a class="objectLink">(no name)</a>()<span class="objectLink-sourceLink objectLink">index.html (line 93)
</span></div><div style="font-family: courier new,monospace;" class="objectBox objectBox-stackFrame"><a class="objectLink">e</a>()<span class="objectLink-sourceLink objectLink">jquery.js (line 1)</span></div></div><div class="errorSourceBox errorSource-exec">
<img style="font-family: courier new,monospace;" src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource"><span style="font-family: courier new,monospace;">eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...
</span>
So, what do you guys say? bug or not?
</span></div></span>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/