PDA

View Full Version : Ext.MessageBox.wait params not inline with 'standard' or backwards



jay@moduscreate.com
8 Jul 2007, 11:10 AM
Why is title #2 param?



wait(String msg, [String title])

as compared to

progress(String title, String msg)
alert(String title, String msg, [Function fn], [Object scope])
prompt(String title, String msg, [Function fn], [Object scope], [Boolean/Number multiline])
confirm(String title, String msg, [Function fn], [Object scope])


Just seems bass ackwards. :)

jack.slocum
8 Jul 2007, 2:03 PM
I agree it is confusing since all the rest are the other way. The primary reason was because unlike the others, the title is optional. Hopefully that makes a little sense.

jay@moduscreate.com
9 Jul 2007, 8:22 AM
yes it does. The title can be null on each of the Message box's as well.

Either way if it's intentional, i understand. Please close this thread and/or move/delete ;)