The first adds properties to the prototype of the dialog function, and the second adds properties to the dialog function object itself. The effect of the first is to expand the "capabilities" of all instances of objects built using this function ("$ .ui.dialog"). The second simply adds properties to the function object itself, presumably to constants or utilities.
source
share