aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix regexp for $.trim so it doesn't whack embedded spaces.Dave Methvin2009-12-061-1/+1
| |
* | Renamed isObjectLiteral to isPlainObject (makes more sense, per the ↵John Resig2009-12-061-3/+3
|/ | | | suggestion of Michael Geary).
* Landing Ben Alman's patch to add nextUntil, prevUntil, and parentsUntil. ↵Ben Alman2009-12-041-2/+3
| | | | Also adds some tests for prevAll and nextAll, and fixes an test edge case in parents.
* Make sure that a DOM node isn't getting passed through (as is the case in ↵jeresig2009-12-021-1/+1
| | | | IE, it has a toString of [object Object].
* Merge branch 'master' of github.com:jquery/jqueryjeresig2009-11-301-1/+1
|\
| * Fixes $.trim for   closes #4980Yehuda Katz2009-11-301-1/+1
| |
* | Fixed bug with singleTag matching in core.js.jeresig2009-11-301-1/+1
|/
* Generic jQuery.merge and safer jQuery.makeArray(nodeList).Robert Katic2009-11-261-17/+23
| | | | | | | | * Made jQuery.marge more generic supporting null and undefined values, and supporting array like objects as results. Fixes #5527. * Made jQuery.makeArray(nodeList) more safer using jQuery.merge internally. Fixes #5528. * Added a second "results" argument to jQuery.makeArray for internal usage to avoid intermediary arrays in init.
* Made jQuery.extend(true, ...) to extend recursively only 'object literal' ↵Robert Katic2009-11-121-13/+4
| | | | values.
* Made isObjectLiteral to work correctly with custom objects with empty ↵Robert Katic2009-11-121-2/+9
| | | | prototypes.
* Use array.indexOf if available (speeds up modern browsers). Thanks to lrbabe ↵lrbabe2009-11-111-0/+4
| | | | and Andrea for the patch. Fixes #5160.
* Made jQuery('<div/>') and jQuery('<div></div>') use the same code path ↵John Resig2009-11-111-1/+1
| | | | (making the second one faster). Fixes #5293.
* Removed the use of this.length++ as it makes it hard to use the init method ↵John Resig2009-11-111-2/+2
| | | | directly. Fixes #4955.
* Renamed isObject to isObjectLiteral to be more specific.John Resig2009-11-101-2/+2
|
* Added comments to isObject.rkatic2009-11-091-1/+12
|
* Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438.John Resig2009-11-071-13/+2
|
* Moved a bunch of methods out of the jQuery-specific Sizzle code into ↵John Resig2009-10-261-1/+1
| | | | more-appropriate files, in jQuery itself.
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID). $("<div/>").after("<span/>") => [ div, span ] (calling after on a disconnected DOM node adds the nodes to the end of the jQuery set) $("<div/>").before("<span/>") => [ span, div ] (calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set) $("div").add("span") => [ div, span, span, div, span ] (results now come out in document order) $("div").find("code").andSelf(); => [ div, code, code ] (results now come out in document order) Same goes for .parents(), .nextAll(), .prevAll(), and .siblings(). Exception: .parents() will still return the results in reverse document order. jQuery.data(elem) => { object of data } (no longer returns the unique ID assigned to the node)
* jquery core: removing the body optimization, as it is then handled by $("TAG").Ariel Flesler2009-09-141-5/+0
|
* jquery core: commenting the new access function.Ariel Flesler2009-09-111-0/+6
|
* jquery core: Closes #5189. Added a generic function to handle ↵Ariel Flesler2009-09-091-0/+24
| | | | getting/setting key-value/setting a hash.
* jquery core: fixes 5187. getElementsByTagName optimization was breaking ↵Ariel Flesler2009-09-091-0/+1
| | | | $('div').live()
* jquery core: closes #5186. getElementsByTagName optimization was breaking ↵Ariel Flesler2009-09-091-2/+2
| | | | the selector attribute.
* Optimize jQuery() for the case $("TAG").John Resig2009-09-081-0/+4
|
* Use the native Array indexOf method if it exists, for jQuery.inArray.John Resig2009-09-081-1/+8
|
* Split out the fragment-building code from domManip. Switched core.js to ↵John Resig2009-09-071-2/+17
| | | | using that instead. Also moved the standalone tag detection to $(...) for performance.
* Added an optimization for the case where $("body") is used.John Resig2009-09-071-0/+5
|
* Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was ↵John Resig2009-08-271-1/+2
| | | | handling the case where documentElement is undefined (which only occurs on HTML documents in IE).
* Tweaked the isXMLDoc iframe test case to test the document, not the body ↵John Resig2009-08-271-1/+1
| | | | element (which doesn't exist in IE). Also made the isXMLDoc code handle cases where elem is null, undefined, etc.
* Moved exposing window.jQuery and window.$ to the end of the jQuery file ↵John Resig2009-08-101-3/+0
| | | | (helps some compatibility cases with older version of Prototype). Fixes ticket #4834.
* Fix some missing braces in core.js.John Resig2009-07-271-2/+6
|
* Added an improvement to quickExpr and some more tests for jQuery('html'). ↵John Resig2009-07-271-3/+3
| | | | Fixes #4979.
* Shortened the isXMLDoc code, based upon recommendation from Andrea.John Resig2009-07-271-2/+1
|
* Added an extra documentElement check to isXMLDoc for IE - and added a number ↵John Resig2009-07-271-1/+4
| | | | of unit tests for isXMLDoc. Fixes #4833.
* Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't ↵John Resig2009-07-231-1/+1
| | | | take any arguments). Follow-up from commit [6484].
* Make sure that at least one argument is provided to .slice(), in accordance ↵John Resig2009-07-231-1/+3
| | | | with the spec. Fixes jQuery bug #4942.
* Optimizing isXMLDoc.John Resig2009-07-221-2/+1
|
* Made some syntax tweaks to core.js.John Resig2009-07-191-5/+12
|
* Saved some references to native methods, instead of re-referencing them on ↵John Resig2009-07-191-5/+7
| | | | every call.
* Moved some RegExp in core.js, goes toward #4111.John Resig2009-07-191-2/+8
|
* Standardizing on .test() and .exec() - moving away from using .match() for ↵John Resig2009-07-191-1/+1
| | | | RegExp. Fixes jQuery bug #4113.
* Add test for jQuery(jQueryObj) cloning and simplify new get() codeYehuda Katz2009-07-171-3/+2
|
* jQuery objects have a default length of 0. Simplifies $() some.Yehuda Katz2009-07-171-13/+12
|
* jquery core: Simplifying isEmptyObject() and adding tests.Ariel Flesler2009-07-161-3/+3
|
* Refactor jQuery.data a bit to reduce property lookupsYehuda Katz2009-07-161-0/+6
| | | | - Also added jQuery.isEmptyObject
* jQuery.extend(true, Object, Object) copies custom objects correctly.Yehuda Katz2009-07-161-3/+13
| | | | - Also update jQuery.isObject to handle this case correctly
* jQuery.extend(true, Object, Object) copies objects with length keys correctlyYehuda Katz2009-07-161-1/+1
|
* Add support for .get(-Number) Closes #4188Yehuda Katz2009-07-161-2/+2
|
* Make toArray an alias for .get(). Closes #3999Yehuda Katz2009-07-161-1/+3
|
* Scope 'document' locally (also useful for sandboxing). Patch from Andrea ↵John Resig2009-07-151-0/+3
| | | | Giammarchi. Fixes bug #4905.