Commit Graph

3323 Commits

Author SHA1 Message Date
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
Timmy Willison
2eff7fe72d Sizzle: remove unneeded vars and POS regex (-22 bytes) 2012-10-24 10:35:08 -04:00
Mike Sherov
bede0123d9 new JSHINT mixed spaces/tabs is smart enough to not warn on multiline comments, rendering smarttabs useless 2012-10-22 13:29:43 -04:00
Matthias Jäggli
227c49a459 Fix #12411, .removeClass(undefined) is a chaining no-op. Close gh-913.
.removeClass() //removes all classes, as documented
.removeClass(window.nonExistentVariable) // removes nothing
2012-10-21 21:06:41 -04:00
Oleg
9dd0b01017 Fix #12061. Avoid window.onbeforeunload to permit multiple handlers. Close gh-894. 2012-10-20 22:29:18 -04:00
Dave Methvin
08341437e0 Remove deprecated $.uuid and dunseled $.deletedIds. 2012-10-20 22:18:29 -04:00
Marcel Greter
de9ff7cd17 Fix #12107. Let .proxy() curry args without overwriting context. Close gh-866. 2012-10-20 22:10:06 -04:00
Oleg Gaidarenko
cafb542da9 Alternate fix for #11426; check responseText. Close gh-843. 2012-10-20 21:25:39 -04:00
Rick Waldron
8076a33bd8 Don't expose jQuery.deletedIds. Close gh-889. 2012-10-20 21:02:21 -04:00
Sai Wong
2b0e720406 Fix #12048. Set attributes for XML fragments. Close gh-965. 2012-10-20 15:27:43 -04:00
Merrifield, Jay
408e5e08c2 Fixes #12518, removes an offsetWidth on focus/blur events for an <IE9 bug that caused a performance hit. Closes gh-958 2012-10-20 14:00:30 -04:00
Sai Wong
5228f0a618 Fix #12610, remove unneeded window.event. Close gh-968. 2012-10-20 10:07:01 -04:00
Richard Gibson
b5084b4bf2 Fix #4262: faster .eq(), closes gh-1000. 2012-10-19 22:32:25 -04:00
Allen J Schmidt Jr
c6cf30a56e Fix #12739. Keep namespace when triggering with an Event. Close gh-972. 2012-10-19 16:42:13 -04:00
jaubourg
9346c0ef99 adds strict rule to jshint options (except for test files). "use strict" is added to the main jQuery closure and some "could-be-unsafe" this trickery in effects is silenced. 2012-10-18 00:50:01 -04:00
James Huston
ee9687d441 Fix #12751. Ensure parseJson throws in the same situations as JSON.parse. Close gh-993. 2012-10-17 16:28:55 -04:00
Richard Gibson
c31539c8a2 no ticket: fix jQuery suite failure on Android 2012-10-17 15:20:50 -04:00
Merrifield, Jay
063ea024e9 Fixes #12569. Improve Feature Detect For oldIE bubbling. closes gh-967 2012-10-17 15:02:31 -04:00
Merrifield, Jay
425272aea1 Fixes #12749, correctly detect position() for position:fixed elements, closes gh-991 2012-10-17 13:41:49 -04:00
Mike Sherov
16d996ba0c no ticket: remove and enforce unused vars in jshint 2012-10-17 12:52:12 -04:00
Timmy Willison
7607068faa Update Sizzle: fixes failing tests in traversing (FF, Opera, Safari) 2012-10-17 11:13:26 -04:00
Sai Wong
0c1cea3761 Refactored before/after/replaceWith to not pushStack. Fixes #12664, closes gh-987 2012-10-16 16:50:40 -04:00
Timmy Willison
f47e3da3c2 Sizzzzzzllllleeeee 2012-10-16 16:42:21 -04:00
jaubourg
8bae5e19af Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550 2012-10-16 16:08:13 -04:00
Timmy Willison
f9f034db6f Update Sizzle: <3 reverts 2012-10-16 15:23:03 -04:00
Dave Methvin
947acfc32e Merge branch 'master' of github.com:jquery/jquery 2012-10-16 15:15:00 -04:00
Daniel Galvez
ef7bce7e5c Fix #11280. IE6-8 need name attribute to parse param. Close gh-914. 2012-10-16 15:07:44 -04:00