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
8530a2fc
Commit
8530a2fc
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
369add5f
Changes
4
Show 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 @
8530a2fc
...
@@ -38,7 +38,7 @@ module.exports = function( grunt ) {
...
@@ -38,7 +38,7 @@ module.exports = function( grunt ) {
"selector"
"selector"
],
],
removeWith
:
{
removeWith
:
{
ajax
:
[
"manipulation/_evalUrl"
],
ajax
:
[
"manipulation/_evalUrl"
,
"event/ajax"
],
callbacks
:
[
"deferred"
],
callbacks
:
[
"deferred"
],
css
:
[
"effects"
,
"dimensions"
,
"offset"
]
css
:
[
"effects"
,
"dimensions"
,
"offset"
]
}
}
...
...
src/ajax.js
View file @
8530a2fc
...
@@ -796,12 +796,5 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
...
@@ -796,12 +796,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 @
8530a2fc
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 @
8530a2fc
...
@@ -23,6 +23,7 @@ define([
...
@@ -23,6 +23,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