Ariel Flesler
440c08d768
jquery core: Applied #1318 to jQuery.grep
2008-05-12 01:21:50 +00:00
Ariel Flesler
1762dc24d6
jquery core: declared undefined locally, to speed up references, and allow munging all their names.
2008-05-11 20:59:24 +00:00
Ariel Flesler
487567e82f
jquery core: closes #2811 , $.fn.add now calls $.unique internally, also it was failing for array-like f.e: window.
2008-05-08 17:08:59 +00:00
Ariel Flesler
858d56fc8e
jquery core: closes #2771
...
$.inArray now makes a === check because of IE.
$.inArray is used in $.fn.index, this is shorter, and breaks the loop when possible.
$.fn.index can receive a jquery object, and the first element is used
2008-05-08 16:14:49 +00:00
Ariel Flesler
4d41c71d3d
jquery core: Reverting the changes added at [5480]
2008-05-07 00:07:44 +00:00
Ariel Flesler
a584f82aef
jquery core: makeArray was parsing forms into array of elements.
2008-05-06 23:28:21 +00:00
Ariel Flesler
69d9abff2c
jquery core: removing needless 'else' and 'new' in $.fn.init.
2008-05-06 22:36:30 +00:00
Ariel Flesler
e5e24bd33f
jquery core: enhancements to jquery.map, closes #2803
2008-05-06 14:54:53 +00:00
Ariel Flesler
789ad4f769
jquery core: small code reduction.
2008-05-06 01:29:13 +00:00
Ariel Flesler
eeab071790
jquery core: code reduction at $.each and $.curCSS.
2008-05-06 00:54:59 +00:00
Scott González
f8698395ac
core: Fixed #2605 : .data() now accepts null as a value.
2008-05-03 01:51:55 +00:00
Scott González
ad3c49d1b6
core: Fixed #2605 : .data() now accepts null as a value.
2008-05-03 01:39:27 +00:00
Scott González
35c68b4578
core: Fixed #2600 : jQuery.extend no longer skips over null properties.
2008-05-02 19:49:41 +00:00
Ariel Flesler
cd455eeba7
jquery core: extend() now supports deep + extending jquery itself
...
cached some vars and it proved to be faster.
2008-04-30 00:09:55 +00:00
Ariel Flesler
17b1e407d1
mainly made the code shorter:
...
- removed some needless if's
- replace multiple "var x" for one, comma separated declaration.
- added a local fn called now() for the (new Date)s
- fixed the indentation of a block, and a typo in a comment.
- used fn instead of prototype where possible
- jquery fx: exposed the speeds hash as jQuery.fx.speeds.
Also fixed (again) line endings
2008-04-29 23:34:50 +00:00
Ariel Flesler
e9c620794f
jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.
2008-04-29 20:58:22 +00:00
Ariel Flesler
508b1e2432
jquery core: fixed makeArray to recognize the window (has length)
...
test runner: updated the tests for makeArray
2008-04-25 03:48:07 +00:00
Ariel Flesler
25f9974cee
jquery core: simplified the code using the new jQuery.makeArray from [5314] where possible.
2008-04-24 21:46:22 +00:00
Jörn Zaefferer
f8e5fd6fef
jquery core: Patch from #2619 applied, making makeArray more flexible and faster; removed hint to ticket from (previously failing) test
2008-04-24 21:23:36 +00:00
Brandon Aaron
3e285bd60d
Small optimization to jQuery.curCSS (thanks Ariel Flesler)
2008-04-21 22:54:25 +00:00
Sean Catchpole
4515aba79c
$.extend deep now copies children's children, ect...
2008-04-08 16:40:03 +00:00
John Resig
a19a123d89
Fixed issue with typeof check - "array" isn't a valid type.
2008-02-17 15:05:55 +00:00
John Resig
f43516f209
Landed a fix for bug #2037 .
2008-02-06 05:18:25 +00:00
John Resig
b0c7df65d0
You can now overwrite values returned from .data() with .bind("getData") - returning a value will override any bound value on that element.
2008-02-03 18:43:04 +00:00
John Resig
4a11e6d70b
Tweaked the .data() event triggering - it now triggers a single 'setData' event, passing in a key value pair of what was changed.
2008-02-03 17:56:21 +00:00
John Resig
77da94552e
Added $().data(), $().removeData(), and .bind("click!"). .data() and .removeData() handle namespaced data, .data() triggers a "set-KEY" event on all modified elements, and .bind("click!") only triggers a click (and no namespaced events).
2008-02-03 04:05:24 +00:00
John Resig
25c76232c6
Updated the years on the licensing.
2008-02-01 23:23:11 +00:00
John Resig
5da2e98cb3
De-eval'd selectors and the various DOM methods (will marginally help our speed and make us more compatible with projects like Caja and Adobe AIR). Left a selector eval in for backwards compatibility support of selector plugins.
2008-01-26 00:26:28 +00:00
David Serduke
1faed11e3c
Fix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignment in the clone() function for IE.
2008-01-23 03:54:23 +00:00
David Serduke
0cd307ec10
Changing end of line from CRLF to just LF like the rest of the source files.
2008-01-14 22:30:48 +00:00
John Resig
c39bd07cc9
Added support for breaking in an object loop (Bug #2111 ).
2008-01-14 20:06:34 +00:00
John Resig
6e739fd2ba
Added a check to make sure that .style exists before trying to access it (Bug #2105 ).
2008-01-14 19:17:35 +00:00
Jörn Zaefferer
c27cbdc477
reverted change for #2114
2008-01-14 09:42:53 +00:00
Jörn Zaefferer
2fa855601e
fix for #2114 ; refactored tests for bind() to highlight failing select-change-test
2008-01-14 09:33:08 +00:00
John Resig
9bcd2b370b
Tweaked comment for isFunction.
2008-01-12 23:03:39 +00:00
David Serduke
05930c5a0d
Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.
2007-12-21 05:47:33 +00:00
David Serduke
50c40add5a
Fixed a couple problems found in the test suite. First, IE doesn't like it when text nodes were trying to duplicate their events in clone, so don't do text nodes (that shouldn't have events anyway). Also the fx module was freezing from a recent update that wasn't quite finished.
2007-12-20 20:40:20 +00:00
John Resig
3261544c38
Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.
2007-12-20 13:36:56 +00:00
Brandon Aaron
b32ec31d89
Insure width/height do not return a negative number.
2007-12-19 18:23:46 +00:00
David Serduke
7ef40fd199
Fixed #2076 where .val() could return an array instead of undefined when the jquery object was empty. The bug was created during the .val() refactoring for the javascript strict FF ticket.
2007-12-18 17:19:33 +00:00
Brandon Aaron
fc51e14b81
width and height methods are now working properly
2007-12-18 03:53:09 +00:00
David Serduke
24e036c7c8
Fixed #2070 by adding a test for !nodeType to isArrayLike so DOM elements like SELECT are not considered array-like (even though they really are).
2007-12-17 21:02:05 +00:00
David Serduke
90b25efa6c
Fixed #2062 by adding a check to see if the selector is array-like in .not() before testing it as an array. Otherwise it does a straight comparison during the filter test.
2007-12-17 16:54:44 +00:00
David Serduke
6496e4d9c4
Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases.
2007-12-17 01:58:05 +00:00
David Serduke
feb9051c0e
Fixed #1781 for warnings created on load by FF javascript.options.strict == true.
2007-12-16 01:03:50 +00:00
John Resig
7120b56caa
Added some improvements to changes made in [4143] for #1854 .
2007-12-13 22:58:59 +00:00
David Serduke
da33a981c6
Fixed #1854 by using wizzud's suggestion. The only real difference is the code is only called when there is more than a single selector. So there should be no speed decrease in the current working cases. Only additional functionality for cases that used to fail.
2007-12-13 22:24:59 +00:00
Brandon Aaron
3e3b86c7a7
Getting the width and height of the document now returns the correct value in all browsers. It even works around the scrollWidth == offsetWidth bug in Firefox thanks to wizzud.
2007-12-13 03:46:48 +00:00
David Serduke
279f77e960
Fixed a bug in clone where it wouldn't work on an XML node in IE. Also added unit test for it.
2007-12-12 01:32:35 +00:00
Brandon Aaron
227f8b2514
Greatly reduced the complexity of the width/height methods. This also fixes #2009 , #1870 , #1796 , #1843 , #1839 , #1818 , #1613 , #1415 and #1629
2007-12-11 04:40:54 +00:00