Side navigation
#238 closed bug (fixed)
Opened October 04, 2006 09:05PM UTC
Closed October 15, 2006 03:11AM UTC
Last modified June 21, 2007 02:39AM UTC
Seperate private and public $.extend
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
Using $.extend like this:
$.fn.myPlugin(options) {
var settings = {
// defaults
}
$.extend(settings, options);
results in the jQuery object being extended when no options are passed. To simplify plugin writing, $.extend shouldn't do anything if the second parameter is null or undefined.
Changing this breaks code that already uses $.extend to extend jQuery itself.
Attachments (0)
Change History (1)
Changed October 15, 2006 03:11AM UTC by comment:1
| resolution: | → fixed |
|---|---|
| status: | new → closed |
Fixed in SVN rev 441.