What's the difference between $.extend($.ui.dialog.prototype, { and $.extend($.ui.dialog, {?
1 Answer 1
The first one adds properties to the prototype of the "dialog" function, while the second adds properties to the "dialog" function object itself. The effect of the first one is to extend the "capabilities" of all instances of objects constructed through that function ("$.ui.dialog"). The second just adds properties to the function object itself, presumably constants or utility methods.
answered Nov 13, 2010 at 13:36
Pointy
415k62 gold badges600 silver badges633 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-js