Commit Graph

3352 Commits

Author SHA1 Message Date
Dave Methvin
c2d6847de0 Fix #12989. Remove ajax "global" event behavior. 2012-12-01 20:29:32 -05:00
jaubourg
e63625e16e Fixes awkward spacing 2012-11-29 17:28:16 +01:00
jaubourg
8a79be7894 Simplifies how url is kept devoid of anti-cache parameter for ifModified requests. Also, renames ifModifiedKey to cacheURL so that it now conveys the variable's nature rather than its purpose. -5 min/gzipped. 2012-11-29 17:16:42 +01:00
Matt Farmer
081c4efcf7 Alias options.method to options.type. Fixes #12004. 2012-11-28 23:59:37 +01:00
Oleg
9ae6b1a019 Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044. 2012-11-27 21:32:59 -05:00
Richard Gibson
1052f9cb2b save a byte 2012-11-27 09:53:30 -05:00
Richard Gibson
243d4cc83c Don't let removeClass create attributes 2012-11-27 09:46:06 -05:00
Richard Gibson
0877d424e0 Fix #12959: Optimize library-wide patterns 2012-11-27 01:59:22 +01:00
Corey Frang
516a7a8792 Fix #12803. Add jQuery.fx.start as a hook point. Close gh-1024. 2012-11-25 15:23:02 -05:00
Scott González
84629a9b87 Fix #12869. Zoom the body after support tests; avoids layout changes in IE8/9/10 in IE7 mode. Close gh-1025. 2012-11-25 15:16:16 -05:00
Dave Methvin
ae215fdcf8 Fix #12134. Make .serialize() HTML5-compliant; provide a propHook for shimming. 2012-11-25 14:54:07 -05:00
Richard Gibson
a938d7b128 No ticket: compress ajax. Close gh-1041. 2012-11-25 13:07:46 -05:00
Dave Methvin
67df705bf5 Fix #12191. jQuery.type should return "error" for Error objects. 2012-11-24 17:22:14 -05:00
dcooper
78c1560065 Fix #9960, allow manipulation for parent document nodes. Close gh-924. 2012-11-24 16:53:27 -05:00
Dave Methvin
3fce794844 Fix #12733. Ignore excess spaciness in event strings.
Thanks @bentruyman!
2012-11-24 16:05:20 -05:00
Dave Methvin
b7ec6ddd45 Fix #12868. Use native focus/blur to get event order right. 2012-11-24 14:44:39 -05:00
Dave Methvin
1fb2f92c35 Fix #3827. Get the correct checkbox status for a click handler. 2012-11-24 14:08:51 -05:00
Timo Tijhof
4fed8eb86d Set async to true instead of async (prop vs. attr). Closes gh-1039 2012-11-21 21:47:59 -05:00
Richard Gibson
bb570fc373 Fix #12920: remove addMandatoryAttributes. Close gh-1037. 2012-11-20 22:57:41 -05:00
Richard Gibson
22f58bd688 fix Safari test failures 2012-11-19 17:17:48 -05:00
Richard Gibson
e889134058 Fix #11795, #10470: keep scripts in DOM; execute only on first insertion. Close gh-864. 2012-11-19 09:50:19 -05:00
aFarkas
ca5e06a15c Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035. 2012-11-18 21:20:12 -05:00
Dave Methvin
20be650bae Merge branch 'x8908' 2012-11-18 14:56:46 -05:00
Elijah Manor
5904468b9c Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886. 2012-11-18 14:49:36 -05:00
Richard Gibson
d08d48337f update Sizzle 2012-11-16 15:57:43 -05:00
Dave Methvin
05fb5de3ee Revert "Fixes #12569. Improve Feature Detect For oldIE bubbling. closes gh-967"
This reverts commit 063ea024e9.

I've beaten on this for a while and can't find a suitable feature detect that catches Chrome's support for focusin.
2012-11-14 21:09:12 -05:00
Dave Methvin
02c726f71c Fix #12777. Add applet to non-cacheable fragment types.
I don't want to add a unit test that creates a dependency on an applet.
2012-11-13 10:30:25 -05:00
Richard Gibson
e78cfb1a37 Fix #12858: don't expose jQuery/Sizzle expandos 2012-11-09 23:43:46 -05:00
Corey Frang
877306738f Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes gh-1019 2012-11-07 21:29:55 -06:00
Corey Frang
c45f6095f2 Keep track of a hiding state for toggle based animations - Fixes #8685
Closes gh-1018
2012-11-07 19:23:24 -06:00
Corey Frang
781a5c0b78 Ensure each tick gets it's own fxNow - Fixes #12837 - Thanks @chadparry
Closes gh-1022
Closes gh-1021
2012-11-07 19:22:14 -06:00
Dave Methvin
6b14cef7a8 Remove APIs now in jquery-compat 2012-11-07 20:12:03 -05:00
Richard Gibson
0ee9415902 Restore jQuery.access parameter mistakenly removed in 80d45a69 2012-11-06 09:53:00 -05:00
Richard Gibson
80d45a69ea Fix #12840: remove undocumented parameter "pass" from .attr. Close gh-1017. 2012-11-05 17:21:24 -05:00
Dave Methvin
68f001e709 Must attach the .selector to the new jQuery object. 2012-11-01 21:40:01 -04:00
Oleg
f651bf8893 Follow-up for .selector property removal 2012-11-01 21:31:55 -04:00
Dave Methvin
240b141a22 Fix #10299. Add a propHook for oldIE link href. 2012-11-01 20:50:45 -04:00
Dave Methvin
9c2f000567 Remove unneeded parameter hockey in event shortcuts. 2012-11-01 19:48:21 -04:00
Dave Methvin
dc9913a0bf Fix #12828. Remove non-standard event properties. 2012-11-01 17:57:23 -04:00
Dave Methvin
395f1da76b Fix #12827. Remove exclusive event semantics from .trigger().
No unit tests were removed in the undoing of this feature. 😭
2012-11-01 16:56:35 -04:00
Dave Methvin
5ed0450dc4 Fix #12816. Ensure .find() result are DOM ordered. 2012-10-31 22:43:04 -04:00
Dave Methvin
e8cf41a051 Fix #10544. Remove deprecated .data() event namespaced triggering.
Data events were horribly slow, never documented, and caused strange interpretation of data items with dots in them.
2012-10-31 21:27:42 -04:00
Mike Sherov
e8f91514a6 Fix #12009. $().find( DOMElement ) should pushStack properly. Close gh-927. 2012-10-30 13:32:53 -04:00
yiminghe
c78a3ba657 Fix #12685. Handle inconsistent opacity for ie < 9. Close gh-1005. 2012-10-30 10:20:54 -04:00
Oleg
bea5ecbba7 Fix #10416. Don't trust computed styles on detached elements. Close gh-941. 2012-10-28 23:32:54 -04:00
Timo Tijhof
36c9ecb0f5 Implement expectation test instead of using _removeData. Close gh-997.
* Removed inline usage of QUnit.reset() because it is messing with the
  expectation model as reset does .empty() which does a recursive cleanData
  on everything in #qunit-fixture, so any expectJqData above .reset() would
  fail negatively.

  Instead of calling reset inline, either updated the following assertions to
  take previous assertions' state into account, or broke the test() up into
  2 tests at the point where it would call QUnit.reset.

* After introducing the new memory leak discovery a whole bunch of tests were
  failing as they didn't clean up everything. However I didn't (yet) add
  QUnit.expectJqData calls all over the place because in most if not all of
  these cases it is valid data storage. For example in test "data()", there
  will be an internal data key for "parsedAttrs". This particular test isn't
  intending to test for memory leaks, so therefor I made the new discovery
  system only push failures when the test contains at least 1 call to
  QUnit.expectJqData.

  When not, we'll assume that whatever data is being stored is acceptable
  because the relevant elements still exist in the DOM anyway (QUnit.reset
  will remove the elements and clean up the data automatically).

  I did add a "Always check jQuery.data" mode in the test suite that will
  trigger it everywhere. Maybe one day we'll include a call to everywhere,
  but for now I'm keeping the status quo: Only consider data left in storage
  to be a problem if the test says so ("opt-in").

* Had to move #fx-tests inside the fixture because ".remove()" test would
  otherwise remove stuff permanently and cause random other tests to fail
  as "#hide div" would yield an empty collection.
  (Why wasn't this in the fixture in the first place?)

  As a result moving fx-tests into the fixture a whole bunch of tests failed
  that relied on arbitrary stuff about the document-wide or fixture-wide
  state (e.g. number of divs etc.). So I had to adjust various tests to
  limit their sample data to not be so variable and unlimited...

* Moved out tests for expando cleanup into a separate test.

* Fixed implied global variable 'pass' in effects.js that was causing
  "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that
  uses a global variable "pass = function () {};" ...

* Removed spurious calls to _removeData. The new test exposed various failures
  e.g. where div[0] isn't being assigned any data anyway.
  (queue.js and attributes.js toggleClass).

* Removed spurious clean up at the bottom of test() functions that are
  already covered by the teardown (calling QUnit.reset or removeClass to
  supposedly undo any changes).

* Documented the parentheses-less magic line in toggleClass. It appeared that
  it would always keep the current class name if there was any (since the
  assignment started with "this.className || ...".

  Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently).
  Only added the comment for now, though I prefer clarity with logical
  operators, I'd rather not face the yayMinPD[1] in this test-related commit.

* Updated QUnit urlConfig to the new format (raw string is deprecated).

* Clean up odd htmlentities in test titles, QUnit escapes this.
  (^\s+test\(.*)(&gt\;) → $1>
  (^\s+test\(.*)(&lt\;) → $1<

[1] jQuery MinJsGz Release Police Department (do the same, download less)
2012-10-28 22:44:57 -04:00
Oleg
18e7a53d15 Elements created from html strings have a parentnode. Fixes #12392 2012-10-25 20:41:47 -04:00
Daniel Gálvez
b398a68333 Fix #11542. document.body should not be special in .offset() and document.documentElement is the default element.offsetParent. Close gh-899. 2012-10-24 23:35:15 -04:00
Dave Methvin
69e2f068fe Fix #9469. Remove semi-functional .selector property. Close gh-1006.
Saved 65 bytes.
2012-10-24 22:36:20 -04:00
Rick Waldron
812c6087ad Brute force property removal when removeData([a,b,c]). Fixes #12786
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-10-24 14:12:28 -04:00