aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-4/+7
| | | | jQuery Core Style Guideline.
* The constructor check for isPlainObject was redundant, everything still ↵jeresig2009-12-181-1/+1
| | | | passes without it.
* Added additional checks for DOM nodes and window to isPlainObject, IE 8 was ↵jeresig2009-12-181-1/+2
| | | | still letting those pass through. Fixes #5669.
* Disabled the passthrough .attr(method_name) functionality. You can now use ↵jeresig2009-12-181-4/+10
| | | | it if you do: .attr({method_name: value}, true) OR as an easy initialization method: jQuery('<div/>', {html: '...', id: 'test'}).
* Made isPlainObject() supporting null, undefined, and window values on IE ↵Robert Katic2009-12-191-4/+6
| | | | too. Also added some related tests. Fixes #5669.
* Revert the changes from 65ebf57c1e5d7fa96536b66d4fcacbafad8dc1e5, they were ↵jeresig2009-12-171-7/+2
| | | | ineffectual against IE's insanity: http://ejohn.org/files/bugs/fragment/ Used a different tactic instead (just don't return a fragment from .parent()). Fixes #5638.
* Moved readyList check.jeresig2009-12-161-2/+2
|
* Retooled the arguments.callee-related changes in ↵jeresig2009-12-161-29/+48
| | | | 98ce35d52b17a033822f31d8a36232222d0d365e to avoid re-declarations where possible.
* Make sure that dynamically-created elements don't have a parent. Fixes #5638.John Resig2009-12-101-2/+7
|
* Moved some methods around inbetween core.js and traversing.js. Core methods ↵John Resig2009-12-101-19/+29
| | | | shouldn't rely upon other modules (e.g. the selector engine) wherever possible.
* Made some minor formatting changes to the access function.John Resig2009-12-101-10/+9
|
* Rewrote .merge() (faster and less obtuse now). Fixed #5610.John Resig2009-12-091-14/+11
|
* Fix up whitespace and a couple of glitches.Yehuda Katz2009-12-091-3/+3
|
* Switched jQuery() to represent jQuery([]) instead of jQuery(document).John Resig2009-12-091-3/+1
|
* Clarified the use of jQuery.browser and enforced jQuery.browser.firefox ↵John Resig2009-12-091-4/+3
| | | | matching Firefox, after the discussion in 17791c9a3e8a88e129a6956e7053b964d7b34778.
* Make sure that document ready events, inside a document ready, are added to ↵John Resig2009-12-091-1/+1
| | | | the queue rather than executing immediately. Fixes #5261.
* Added in jQuery.browser.firefox, deprecated jQuery.browser.mozilla.John Resig2009-12-081-2/+5
|
* Get browser version rather than rendering engine version.Dave Methvin2009-12-091-2/+2
| | | | | | Don't recognize Chrome as Safari. See results of different userAgent strings here: http://spreadsheets.google.com/ccc?key=0Aj5JJFjq9rZDdHdxXzRLVnY0SzFpRTBOUDc4VmhzRVE
* Removed uses of arguments.callee from jQuery.John Resig2009-12-071-7/+9
|
* Moved .ready() to core.js from event.js.John Resig2009-12-071-0/+123
|
* Added an extra function check to prevent crashes in Safari 2. Fixes #3039.John Resig2009-12-061-1/+3
|
* Use the isXML function from Sizzle.John Resig2009-12-061-8/+0
|
* Merge branch 'master' of git@github.com:jquery/jqueryJohn Resig2009-12-061-1/+1
|\
| * 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 &nbsp; 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
|