| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
prettier builds). No functionality changes.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
appropriate. Close gh-1228.
|
|
|
|
| |
jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234
|
| |
|
|
|
|
| |
(cherry picked from commit 4ef516903e6e48bce388ca47c1ed88a447199fa1)
|
| |
|
|
|
|
|
|
|
|
| |
(cherry picked from 4adde5d14534799f3bcfac2771e1513be8a56a2f)
Conflicts:
src/data.js
src/effects.js
|
|
|
|
|
|
| |
select. Close gh-1191.
(cherry picked from commit 48d71d0c3e53d1bb1688fc6c0593b008ced3403b)
|
|
|
|
|
|
| |
"undefined" for safer uglification
(cherry picked from commit ec9b38a34fb9bd81d1903cf12b69466f699abca5)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
string
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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\(.*)(>\;) → $1>
(^\s+test\(.*)(<\;) → $1<
[1] jQuery MinJsGz Release Police Department (do the same, download less)
|
| |
|
|
|
|
|
| |
.removeClass() //removes all classes, as documented
.removeClass(window.nonExistentVariable) // removes nothing
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Originally removed in 86b775d036627ebd7242fbb4eb9f24e4ba1fa9c5 as part of the enhancement that allows $(html, props) to use any $.fn method.
Although $.attrFn is undocumented it appears to be a poorly kept secret. jQuery Mobile 1.1 is using it and it's the topic of several blog/StackOverflow posts. Leave an empty object here as a dumpster for now, but it's coming out for good in 1.9.
|
| |
|
|
|
|
|
|
| |
This reverts commit e866893fd29b0328ebc282cf0ba716e6f87384c3.
Failures in IE6 when this is removed, unfortunately.
|
|
|
|
| |
At this point BlackBerry 4.7 (and related ancient browsers) should be scarce (released circa 2008) so #6932 will be closed wontfix for this edge case.
|
|
|
|
| |
This was fixed to some extent in gh-724 but there were insufficient test cases. Removing the lowercase completely allows IE 6/7 to work properly since there you need an exact case match for attributes, even in HTML docs. More discussion and test cases in the comments on gh-724.
|
| |
|
| |
|
|
|
|
| |
Closes gh-839.
|