... No, it wouldn't; it's perfectly legal ECMAScript. The curlies really are optional (just like in C, Java, and other languages with C-like syntax). - Conrad...
40270
Philip Tellis
philiptellis
Nov 2, 2008 11:52 pm
... Adding braces isn't purely a style convention. They're also used to ensure that the machine does what the programmer intended. Taking them out in...
40271
dav.glass@...
dav.glass
Nov 2, 2008 11:56 pm
Conrad -- I used the wrong term (syntax error), to me code that doesn't run as expected is an error ;) So not putting the braces in and compressing the line...
40272
Philip Tellis
philiptellis
Nov 2, 2008 11:59 pm
... Try this code: if (map.hasOwnProperty(k)) { if (!(k in target)) target[k] = map[k]; else target[k] = null; } It's still one statement inside the outer if,...
40273
Randall R Schulz
velomanr
Nov 3, 2008 12:05 am
... Grotesque! Redundant punctuation does not accentuate readability, and any programmer who would make mistakes that result from reading code without braces...
40274
Randall R Schulz
velomanr
Nov 3, 2008 12:06 am
... Clearly a source change that alters the code's semantics is not acceptable for the compressor. Randall Schulz...
40275
Philip Tellis
philiptellis
Nov 3, 2008 12:10 am
... When 900 years old you reach, look as good, you will not. Hmm?...
40276
crlender
Nov 3, 2008 12:17 am
... Just tested it, and it works just as expected. ... No, it's *two* statements inside the outer 'if'. And those semicolons are not optional, so taking them...
40277
crlender
Nov 3, 2008 12:23 am
... expected is an error ;) ... in code that doesn't run as you want it to. Dav, I may be misreading you, but I don't see how the example I posted could be...
40278
Randall R Schulz
velomanr
Nov 3, 2008 12:24 am
... Umm... Yes? Unless, perhaps, you're an acolyte of Ray Kurzweil. However, I fail to apprehend the significance of the assertion... RRS...
40279
Nate Koechley
nate.koechley
Nov 3, 2008 12:31 am
Hey Brendan, ... IE sees one of the two keywords. IE sees "small" when in Standards Mode and "x-small" when in Quirs Mode. In both cases, the keyword = 13px. ...
40280
D. Wayne Fincher
slowlychillin
Nov 3, 2008 1:07 am
Code conventions aren't just about "making code more readable". Anyone that attacks my post on that one single issue is taking part in a straw man. That is,...
40281
dpj22
Nov 3, 2008 1:07 am
You can use the Firebug add-on to Firefox to inspect and change the CSS of a web page. It's a quick way of figuring out what CSS is being applied. Put the...
40282
Lee.M
jupiter@...
Nov 3, 2008 2:19 am
... Thanks again :) I had also tried that but this is the result: All of this is in <head> along with the treeview and cookie .js's: <script...
40283
Caxton
ivy_ckf
Nov 3, 2008 6:13 am
Hi, Bob: Do you have resloved fix width of tab ins tabview? I had try customize the tabview skin based on tabview's document. However, no matter how I try, the...
40284
Caxton
ivy_ckf
Nov 3, 2008 6:29 am
Well, I found that set "width:6em; text-align:center" on the <em> is work. Sorry for troubled. :P ... div, or ... would be...
40285
Christian Tiberg
ctiberg
Nov 3, 2008 8:03 am
Hello! I think that I've found a bug. Or I'm rather sure of it, actually. Line 7264 of datatable.js starts a loop: for(; i>nIterEnd; i--) { ...
40286
Satyam
satyamutsa
Nov 3, 2008 8:49 am
The purpose of that loop is, indeed, to empty the table, nevertheless, it has nothing to do with the Loading .... message remaining visible. The table body and...
40287
Satyam
satyamutsa
Nov 3, 2008 9:05 am
You are missing the empty parenthesis at the end of getTreeDefinition, it should be: var tree_struct_x = tree.getTreeDefinition(); Without the parenthesis you...
40288
Arnaud Limbourg
arnaud_limbourg
Nov 3, 2008 9:07 am
Hi all, I'm posting as it might be useful for some of you (and there might be a better way). When using a datatable with inline cell editing there is a problem...
40289
Christian Tiberg
ctiberg
Nov 3, 2008 9:19 am
That's strange.. Explorer points to the line saying elTbody.deleteRow(-1), or rather the next, as Explorer always does. So you're saying that Explorer doesn't...
40290
Frank Dietrich
dietrich.frank
Nov 3, 2008 9:33 am
I use the YUI Calendar since some month into a French and internationalizable application. Currently I configure the calendar for French users by putting this...
40291
Satyam
satyamutsa
Nov 3, 2008 10:28 am
IE certainly knows where the error has cascaded to, the point where it can go no further, but the underlying cause might be another. The line it points to is...
40292
Christian Tiberg
ctiberg
Nov 3, 2008 10:51 am
Well, that might be, but it happens for every datatable without rows in our project, and only in IE. I'll have to do something about it here, but don't feel...
40293
Frank Dietrich
dietrich.frank
Nov 3, 2008 11:03 am
Well, that might be, but it happens for every datatable without rows in our project, and only in IE. I'll have to do something about it here, but don't feel...
40294
Christian Tiberg
ctiberg
Nov 3, 2008 11:12 am
That doesn't seem feasible.. Then the users wouldn't see the message about no records, but instead a bogus record for which there is no data. This would...
40295
Frank Dietrich
dietrich.frank
Nov 3, 2008 12:09 pm
sure, but before editing the YUI-Code, I'd rather create my own "no data" record or manually hide the complete table showing a placeholder,... something...
40296
Frank Dietrich
dietrich.frank
Nov 3, 2008 12:16 pm
That doesn't seem feasible.. If Your "Loading-Message" stays, are You sure, Your'e not having an error somewhere? YUI's async requests and other methods...
40297
Christian Tiberg
ctiberg
Nov 3, 2008 12:37 pm
I'm not *sure* of anything, except that adding the if statement I put above solves the problem. How the problem occurs or why isn't clear yet. My first ...