git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed all deprecated functionality for jQuery 1.2. A full list of what was removed...
[jquery.git]
/
src
/
ajax
/
ajax.js
diff --git
a/src/ajax/ajax.js
b/src/ajax/ajax.js
index
62785f3
..
dd54d0c
100644
(file)
--- a/
src/ajax/ajax.js
+++ b/
src/ajax/ajax.js
@@
-1,10
+1,5
@@
jQuery.fn.extend({
jQuery.fn.extend({
- // DEPRECATED
- loadIfModified: function( url, params, callback ) {
- this.load( url, params, callback, 1 );
- },
-
- load: function( url, params, callback, ifModified ) {
+ load: function( url, params, callback ) {
if ( jQuery.isFunction( url ) )
return this.bind("load", url);
if ( jQuery.isFunction( url ) )
return this.bind("load", url);
@@
-40,10
+35,9
@@
jQuery.fn.extend({
url: url,
type: type,
data: params,
url: url,
type: type,
data: params,
- ifModified: ifModified,
complete: function(res, status){
// If successful, inject the HTML into all the matched elements
complete: function(res, status){
// If successful, inject the HTML into all the matched elements
- if ( status == "success" || !ifModified && status == "notmodified" )
+ if ( status == "success" || status == "notmodified" )
// See if a selector was specified
self.html( selector ?
// Create a dummy div to hold the results
// See if a selector was specified
self.html( selector ?
// Create a dummy div to hold the results
@@
-69,12
+63,7
@@
jQuery.fn.extend({
serialize: function() {
return jQuery.param( this );
serialize: function() {
return jQuery.param( this );
- },
-
- // DEPRECATED
- // This method no longer does anything - all script evaluation is
- // taken care of within the HTML injection methods.
- evalScripts: function(){}
+ }
});
});
@@
-88,7
+77,7
@@
jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".sp
var jsc = (new Date).getTime();
jQuery.extend({
var jsc = (new Date).getTime();
jQuery.extend({
- get: function( url, data, callback, type, ifModified ) {
+ get: function( url, data, callback, type ) {
// shift arguments if data argument was ommited
if ( jQuery.isFunction( data ) ) {
callback = data;
// shift arguments if data argument was ommited
if ( jQuery.isFunction( data ) ) {
callback = data;
@@
-100,16
+89,10
@@
jQuery.extend({
url: url,
data: data,
success: callback,
url: url,
data: data,
success: callback,
- dataType: type,
- ifModified: ifModified
+ dataType: type
});
},
});
},
- // DEPRECATED
- getIfModified: function( url, data, callback, type ) {
- return jQuery.get(url, data, callback, type, 1);
- },
-
getScript: function( url, callback ) {
return jQuery.get(url, null, callback, "script");
},
getScript: function( url, callback ) {
return jQuery.get(url, null, callback, "script");
},
@@
-133,11
+116,6
@@
jQuery.extend({
});
},
});
},
- // DEPRECATED
- ajaxTimeout: function( timeout ) {
- jQuery.ajaxSettings.timeout = timeout;
- },
-
ajaxSetup: function( settings ) {
jQuery.extend( jQuery.ajaxSettings, settings );
},
ajaxSetup: function( settings ) {
jQuery.extend( jQuery.ajaxSettings, settings );
},