modal dialog moveToTop 1.7.3 vs. 1.8.1

modal dialog moveToTop 1.7.3 vs. 1.8.1

Hmm.  Is this a feature or a bug?

In 1.7.x, .dialog("moveToTop") returns the dialog whether or not the dialog is modal, allowing chaining
In 1.8.1, .dialog("moveToTop") returns true if the dialog is modal, otherwise the dialog.

This can be ...surprising... if you have chained .dialog("moveToTop").dialog("blah") method calls.

  1.       /* works jquery 1.7.3 and jquery 1.8.1 */
          div2 = $('<div id="dialog2" title="Dialog 2"/>').appendTo(document.body);
          dlga2 = div2.dialog();
          dlga3 = dlga2.dialog("open");
          dlga4 = dlga3.dialog("moveToTop");
          dlga5 = dlga4.append("Foo");

          /* works jquery 1.7.3 */
          div3 = $('<div id="dialog3" title="Dialog 3"/>').appendTo(document.body);
          dlgb2 = div3.dialog({modal: true}); /* modal case */
          dlgb3 = dlgb2.dialog("open");
          dlgb4 = dlgb3.dialog("moveToTop");  /* dlgb4 will be true in 1.8.1, not the dialog! */
          dlgb5 = dlgb4.append("Bar"); /* not gonna happen */