Commit Graph

506 Commits

Author SHA1 Message Date
Richard Gibson
c14a6b385f Clean up regexen; use common regex for numbers. Close gh-862. 2012-07-22 22:23:32 -04:00
Mike Sherov
8f01b92b8f Follow the style guide, lose 72 bytes! Closes gh-840. 2012-07-09 21:39:22 -04:00
Mike Sherov
f5fd41252e Fix #12018, readyState "interactive" in oldIE lies! Closes gh-848. 2012-07-06 10:12:20 -04:00
Oleg
05aff40231 Optimization of array operations, closes gh-844. 2012-07-06 09:48:52 -04:00
Mike Sherov
7532bd7df5 Stop using reserved words as argument names, closes gh-841. 2012-07-06 09:09:40 -04:00
timmywil
f71a6ec6cf Add back ID shortcut. It's about 3 times faster than going through jQuery.fn.find and merging. 2012-07-02 11:34:26 -04:00
Dave Methvin
672701add1 Move jQuery.sub to deprecated.js, because it is. 2012-06-29 17:47:59 -07:00
Mike Sherov
a69fbbaa8b stop using reserved words as argument names 2012-06-28 21:39:58 -04:00
Dave Methvin
9cbe375a55 Fix #10895. Reduce IE poll interval to save CPU time. 2012-06-26 09:16:29 -04:00
Rick Waldron
a2758377df Adds src/deprecated.js, test/unit/deprecated.js; -deprecated flag; Moves jQuery.browser and removes use in test/unit/ajax.js. Fixes #11965 2012-06-25 10:02:28 -04:00
timmywil
26bdbb806e Do jQuery.trim in less bytes (-5). 2012-06-21 15:57:12 -04:00
timmywil
e2497c682f Add parseHTML for explicitly parsing strings into html. Fixes #11617. 2012-06-21 15:39:04 -04:00
Richard Gibson
66501469c0 Close GH-829: no ticket: smaller jQuery.ready. 2012-06-21 13:40:59 -04:00
timmywil
6cdca88eee Restore rhtmlString to its original form. 1.9 will come with starts-with html matching. For now, we are warning against broad use of jQuery() to parse html. 2012-06-21 11:38:31 -04:00
timmywil
c20e031058 Revert "Adjust jQuery('html') detection to only match when html starts with '<' (counting space characters). Fixes #11290"
This reverts commit 239fc86b01.

The consensus is that this would change behavior too abruptly. We will warn in 1.8 and do this in 1.9.
2012-06-21 11:38:31 -04:00
timmywil
239fc86b01 Adjust jQuery('html') detection to only match when html starts with '<' (counting space characters). Fixes #11290 2012-06-20 11:19:24 -04:00
timmywil
7692ae419d When detecting html in init, ignore html characters within quotes, brackets, and parens as well as escaped characters which are valid in selectors. Fixes #11290. 2012-06-19 11:35:45 -04:00
timmywil
713cc86096 Move quickIs to Sizzle; Remove duplicate id matching in init; Added selector caching to Sizzle. Fixes #11826. 2012-06-18 23:10:32 -04:00
Richard Gibson
a101e81bde Interim take on cross-module variables, closes gh-817. 2012-06-15 21:01:44 -04:00
Rick Waldron
7c23b77af2 Strips IIFEs from modules; Always require built jQuery for tests. 2012-06-04 12:48:18 -04:00
jaubourg
03e0029761 @mikesherov said: no need for an else if! 2012-05-07 19:14:00 +02:00
Scott González
95a4a776cf Simplify jQuery( html, props ), closes gh-765. 2012-05-06 21:24:46 -04:00
jaubourg
e3cf0e220c Transform $.bindReady into $.ready.promise. It is now possible to use $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added. 2012-05-06 01:05:03 +02:00
Mike Sherov
714b8ffd2b reduce complexity of ready further, and try manipulating DOM to make sure we're really ready 2012-05-04 13:31:35 -04:00
Mike Sherov
f925c7a1c9 remove jQuery.quickReady, save bytes, style nits in tests 2012-05-04 10:17:30 -04:00
Mike Sherov
54fab3174c Fix #10067. Create jQuery.quickReady; closes gh-736.
Allows us to get to the ready state sooner by not waiting for iframes to load. If that causes backcompat pain, use `jQuery.quickReady = false` as prescribed by your developer.
2012-04-23 15:44:27 -04:00
Dave Methvin
9ebc27db54 Remove $("body") case; $(document.body) is 2x faster. 2012-04-18 13:04:44 -04:00
Oleg
abd2a07498 Fix #8894. Ensure .appendTo creates a new set in oldIE. 2012-04-16 21:57:41 -04:00
Sindre Sorhus
d5ee856a44 Remove moot second argument from slice.call()
The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported.
2012-04-04 23:22:15 -04:00
Richard Gibson
22ad8723ce Fix #11325: smaller/stronger domManip/buildFragment/clean 2012-04-04 23:03:34 -04:00
jaubourg
d30859eb6b Makes parseXML act like parseJSON when given an empty or non-string input: now returns null rather than throwing an exception. Incidently fixes #10527. Unit tests added. 2012-03-07 17:37:14 +01:00
RafaC3ABl Blais Masson
0fcfac7568 Refine the jQuery.isWindow check. 2011-12-06 16:17:09 -05:00
Richard Gibson
6c2a501de4 Fix #5571. Setters should treat undefined as a no-op and be chainable. 2011-12-06 15:25:38 -05:00
timmywil
1eb1ad6160 Remove rdigit now that it is no longer necessary 2011-11-18 11:45:12 -05:00
jrburke
8bc60bab5d Landing pull request 586. Create exports.js for exporting jQuery to window and AMD. Fixes #10687.
More Details:
 - https://github.com/jquery/jquery/pull/586
 - http://bugs.jquery.com/ticket/10687
2011-11-14 12:13:25 -05:00
Daniel Herman
654930de21 Removing .unbind in favor of .off in jQuery.ready 2011-11-09 20:30:08 -05:00
Dave Methvin
8d2655d20c Fix #10646. Throw an Error object from .error() for IE's sake. 2011-11-07 11:40:39 -05:00
Dave Methvin
795583d293 Fix #10690. Make sure .isNumeric() can't get a Date.
Also add tests for custom objects with a `.toString()` method.
2011-11-07 11:25:51 -05:00
Matt Mueller
a211ea27d2 Removed irrelevant comment. 2011-11-06 17:34:49 -05:00
Rick Waldron
7cbd7a640f Coerce eq() argument all the time. Fixes #10616 2011-11-06 16:17:59 -05:00
Rick Waldron
da062c54f4 Cleanup spacing in core.js. Fixes #10601 2011-10-27 15:25:30 -04:00
Dave Methvin
83c08ffa1f Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.
Thanks to Christian C. Salvadó for the unit tests!
2011-10-11 21:04:22 -04:00
jrburke
bba3d610c7 Landing pull request 331. Add support for registering jQuery as an AMD module. Fixes #7102.
More Details:
 - https://github.com/jquery/jquery/pull/331
 - http://bugs.jquery.com/ticket/7102
2011-09-19 16:37:22 -04:00
timmywil
29c52b0f6c Add sparse array performance improvement for inArray. Thanks rwaldron, rkatic, and jdalton 2011-09-19 15:42:32 -04:00
timmywil
b7ebbb9142 Fix inArray for positive start indices 2011-09-19 15:42:32 -04:00
timmywil
2e0c9bfd36 Allow second argument to be passed to array.indexOf. Fixes #9453. 2011-09-19 15:42:30 -04:00
jaubourg
4092e3d275 $.Callbacks, $.Topic and notify/progress on $.Deferred. 2011-09-19 15:42:30 -04:00
timmywil
2a045f8269 Revert "Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385"
This reverts commit dd93d0eb32.
2011-08-26 10:10:35 -04:00
Dave Methvin
e57057739b Merge pull request #445 from rwldrn/9897
Fixes #9897. Wrap obj.constructor test in try/catch to avoid problems with host objects. Thanks to bkrausz.
2011-08-25 12:25:58 -07:00
Dave Methvin
a839af034d Merge pull request #465 from anton-ryzhov/master
Fixes #10076. $.inArray crashes IE6 and Chrome if second argument is `null` or `undefined` (Thanks anton-ryzhov!)
2011-08-25 12:22:47 -07:00