Simplified the structure of the .css() and .attr() methods (reducing the number of calls). Need to optimize $.css/$.curCSS/$.attr still. Fixes #4269.
This commit is contained in:
parent
1c8c3883a9
commit
f1f5cd9f6a
2 changed files with 29 additions and 34 deletions
|
@ -1688,13 +1688,6 @@ test("jQuery.each(Object,Function)", function() {
|
|||
equals( total, 3, "Looping over an object, with break" );
|
||||
});
|
||||
|
||||
test("jQuery.prop", function() {
|
||||
expect(2);
|
||||
var handle = function() { return this.id };
|
||||
equals( jQuery.prop(jQuery("#ap")[0], handle), "ap", "Check with Function argument" );
|
||||
equals( jQuery.prop(jQuery("#ap")[0], "value"), "value", "Check with value argument" );
|
||||
});
|
||||
|
||||
test("jQuery.className", function() {
|
||||
expect(6);
|
||||
var x = jQuery("<p>Hi</p>")[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue