jquery
Repos
50

jQuery JavaScript Library

56225
19914

The official jQuery user interface library.

11058
5022

Events

Created at 5 hours ago
started
Created at 5 hours ago
pull request opened
Tests: Exclude tests based on compilation flags, not API presence

Summary

Introduces a new test API, includesModule. The method returns whether a particular module like "ajax" or "deprecated" is included in the current jQuery build; it handles the slim build as well. The util was created so that we don't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail.

Checklist

  • [ ] New tests have been added to show the fix or feature works
  • [ ] Grunt build and unit tests pass locally with these changes
  • [ ] If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com
Created at 6 hours ago
Created at 9 hours ago
started
Created at 11 hours ago
started
Created at 16 hours ago
started
Created at 16 hours ago
started
Created at 16 hours ago
started
Created at 16 hours ago
Created at 21 hours ago
opened issue
$.ajax() documentation should be fixed in a case where script isn't necessarily executed yet

$.getScript() returns a jqXHR object that may be used as so:

$.getScript( '/foobar.js' ).done( function ( script, textStatus ) {
    // script has been loaded and executed
} );

However, it can also be provided a second, optional success argument:

$.getScript( '/foobar.js', function ( data, textStatus, jqxhr ) {
    // script has been loaded, but not necessarily executed yet
} );

Notice in the second snippet that the script isn't necessarily executed yet.

This subtle, but important, difference is noted in the $.getScript() documentation:

The callback is fired once the script has been loaded but not necessarily executed.

However, $.getScript() is just a shorthand method that calls $.ajax(), and the latter seems to have a mistake in its documentation:

If script is specified, $.ajax() will execute the JavaScript that is received from the server before passing it on to the success handler as a string.

Tu summarize, if I correctly figured out the behavior of $.ajax(), the remote script has been executed when using the returned jqXHR object, but not necessarily when using the callbacks (success, complete, etc.) passed to the settings argument.

Thus, the above line from the documentation should be fixed. You may also want to emphasize these two different behaviors.

Created at 1 day ago
started
Created at 1 day ago
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
Created at 1 day ago
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
Not able to download jquery ui from the official site.

I clicked the "DOWNLOAD" button,but I cant download!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Created at 1 day ago
started
Created at 1 day ago
started
Created at 1 day ago
Created at 2 days ago
started
Created at 2 days ago