> You know, I see it now; it says in the documentation "The object that
> will be merged into the jQuery object.".. I read that and took it to
> be the core of jQuery itself, since the documentation only lists one
> argument for $.extend. In Mike's article I saw that it was combining
> two things, I just wasn't seeing the why; now I do.
I think there's some confusion between these two:
http://docs.jquery.com/Utilities/jQuery.extend#deeptargetobject1objectN
http://docs.jquery.com/Core/jQuery.extend#object
If you only pass one object to extend, jQuery assumes you mean to
extend jQuery itself.
-- Scott
No comments:
Post a Comment