Attempt to get height on uncreated dialog returns Object

Attempt to get height on uncreated dialog returns Object

Not sure if this is a bug or by design, but I noticed today that when attempting to get the height of a dialog window that hasn't been created yet, it returns an Object instead of "undefined" as it did in 1.7.2.

  1. $("#dialog").dialog"option","height" );
returns  [object Object] if #dialog has not already been turned into a dialog yet.

This breaks code like:
  1. if ( !$("#dialog").dialog( "option", "height" ) ) {
  2.     $("#dialog").dialog();
  3. }
Maybe it has something to do with whether #dialog already exists (as a div) on the page