Specifying only a secondary icon for the Button widget locates the icon on the left?

Specifying only a secondary icon for the Button widget locates the icon on the left?

If I use the following:

        .button({
            icons: {
                secondary: "ui-icon-close"
            }

I would expect the secondary icon to be displayed to the right of the text. However, it is displayed on the left.