Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
97c803ac
Commit
97c803ac
authored
Jun 02, 2014
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajax: move ajax event aliases to their own file
Fixes #15126
parent
3b9057a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
Gruntfile.js
Gruntfile.js
+1
-1
ajax.js
src/ajax.js
+0
-7
ajax.js
src/event/ajax.js
+13
-0
jquery.js
src/jquery.js
+1
-0
No files found.
Gruntfile.js
View file @
97c803ac
...
@@ -39,7 +39,7 @@ module.exports = function( grunt ) {
...
@@ -39,7 +39,7 @@ module.exports = function( grunt ) {
],
],
// Exclude specified modules if the module matching the key is removed
// Exclude specified modules if the module matching the key is removed
removeWith
:
{
removeWith
:
{
ajax
:
[
"manipulation/_evalUrl"
],
ajax
:
[
"manipulation/_evalUrl"
,
"event/ajax"
],
callbacks
:
[
"deferred"
],
callbacks
:
[
"deferred"
],
css
:
[
"effects"
,
"dimensions"
,
"offset"
],
css
:
[
"effects"
,
"dimensions"
,
"offset"
],
sizzle
:
[
"css/hiddenVisibleSelectors"
,
"effects/animatedSelector"
]
sizzle
:
[
"css/hiddenVisibleSelectors"
,
"effects/animatedSelector"
]
...
...
src/ajax.js
View file @
97c803ac
...
@@ -795,12 +795,5 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
...
@@ -795,12 +795,5 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
};
};
});
});
// Attach a bunch of functions for handling common AJAX events
jQuery
.
each
(
[
"ajaxStart"
,
"ajaxStop"
,
"ajaxComplete"
,
"ajaxError"
,
"ajaxSuccess"
,
"ajaxSend"
],
function
(
i
,
type
)
{
jQuery
.
fn
[
type
]
=
function
(
fn
)
{
return
this
.
on
(
type
,
fn
);
};
});
return
jQuery
;
return
jQuery
;
});
});
src/event/ajax.js
0 → 100644
View file @
97c803ac
define
([
"../core"
,
"../event"
],
function
(
jQuery
)
{
// Attach a bunch of functions for handling common AJAX events
jQuery
.
each
(
[
"ajaxStart"
,
"ajaxStop"
,
"ajaxComplete"
,
"ajaxError"
,
"ajaxSuccess"
,
"ajaxSend"
],
function
(
i
,
type
)
{
jQuery
.
fn
[
type
]
=
function
(
fn
)
{
return
this
.
on
(
type
,
fn
);
};
});
});
src/jquery.js
View file @
97c803ac
...
@@ -22,6 +22,7 @@ define([
...
@@ -22,6 +22,7 @@ define([
"./ajax/script"
,
"./ajax/script"
,
"./ajax/jsonp"
,
"./ajax/jsonp"
,
"./ajax/load"
,
"./ajax/load"
,
"./event/ajax"
,
"./effects"
,
"./effects"
,
"./effects/animatedSelector"
,
"./effects/animatedSelector"
,
"./offset"
,
"./offset"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment