Marked all the appropriate methods as being deprecated for the 1.1.4 release (in preparation for 1.2).
This commit is contained in:
parent
4df20c0c1b
commit
257eaf7ee3
|
@ -15,6 +15,7 @@ jQuery.fn.extend({
|
||||||
* @param Function callback (optional) A function to be executed whenever the data is loaded (parameters: responseText, status and response itself).
|
* @param Function callback (optional) A function to be executed whenever the data is loaded (parameters: responseText, status and response itself).
|
||||||
* @cat Ajax
|
* @cat Ajax
|
||||||
*/
|
*/
|
||||||
|
// DEPRECATED
|
||||||
loadIfModified: function( url, params, callback ) {
|
loadIfModified: function( url, params, callback ) {
|
||||||
this.load( url, params, callback, 1 );
|
this.load( url, params, callback, 1 );
|
||||||
},
|
},
|
||||||
|
@ -302,6 +303,7 @@ jQuery.extend({
|
||||||
* @param Function callback (optional) A function to be executed whenever the data is loaded successfully.
|
* @param Function callback (optional) A function to be executed whenever the data is loaded successfully.
|
||||||
* @cat Ajax
|
* @cat Ajax
|
||||||
*/
|
*/
|
||||||
|
// DEPRECATED
|
||||||
getIfModified: function( url, data, callback, type ) {
|
getIfModified: function( url, data, callback, type ) {
|
||||||
return jQuery.get(url, data, callback, type, 1);
|
return jQuery.get(url, data, callback, type, 1);
|
||||||
},
|
},
|
||||||
|
@ -414,6 +416,7 @@ jQuery.extend({
|
||||||
* @param Number time How long before an AJAX request times out, in milliseconds.
|
* @param Number time How long before an AJAX request times out, in milliseconds.
|
||||||
* @cat Ajax
|
* @cat Ajax
|
||||||
*/
|
*/
|
||||||
|
// DEPRECATED
|
||||||
ajaxTimeout: function( timeout ) {
|
ajaxTimeout: function( timeout ) {
|
||||||
jQuery.ajaxSettings.timeout = timeout;
|
jQuery.ajaxSettings.timeout = timeout;
|
||||||
},
|
},
|
||||||
|
|
1
src/jquery/jquery.js
vendored
1
src/jquery/jquery.js
vendored
|
@ -2422,6 +2422,7 @@ jQuery.each( {
|
||||||
* @param String str The string that will be contained within the text of an element.
|
* @param String str The string that will be contained within the text of an element.
|
||||||
* @cat DOM/Traversing
|
* @cat DOM/Traversing
|
||||||
*/
|
*/
|
||||||
|
// DEPRECATED
|
||||||
jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
|
jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
|
||||||
jQuery.fn[ n ] = function(num,fn) {
|
jQuery.fn[ n ] = function(num,fn) {
|
||||||
return this.filter( ":" + n + "(" + num + ")", fn );
|
return this.filter( ":" + n + "(" + num + ")", fn );
|
||||||
|
|
|
@ -58,6 +58,7 @@ jQuery.extend({
|
||||||
// :has()
|
// :has()
|
||||||
has: "jQuery.find(m[3],a).length"
|
has: "jQuery.find(m[3],a).length"
|
||||||
},
|
},
|
||||||
|
// DEPRECATED
|
||||||
"[": "jQuery.find(m[2],a).length"
|
"[": "jQuery.find(m[2],a).length"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -66,6 +67,7 @@ jQuery.extend({
|
||||||
// Match: [@value='test'], [@foo]
|
// Match: [@value='test'], [@foo]
|
||||||
/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
|
/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
|
||||||
|
|
||||||
|
// DEPRECATED
|
||||||
// Match: [div], [div p]
|
// Match: [div], [div p]
|
||||||
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
|
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
|
||||||
|
|
||||||
|
@ -107,11 +109,13 @@ jQuery.extend({
|
||||||
// Set the correct context (if none is provided)
|
// Set the correct context (if none is provided)
|
||||||
context = context || document;
|
context = context || document;
|
||||||
|
|
||||||
|
// DEPRECATED
|
||||||
// Handle the common XPath // expression
|
// Handle the common XPath // expression
|
||||||
if ( !t.indexOf("//") ) {
|
if ( !t.indexOf("//") ) {
|
||||||
//context = context.documentElement;
|
//context = context.documentElement;
|
||||||
t = t.substr(2,t.length);
|
t = t.substr(2,t.length);
|
||||||
|
|
||||||
|
// DEPRECATED
|
||||||
// And the / root expression
|
// And the / root expression
|
||||||
} else if ( !t.indexOf("/") && !context.ownerDocument ) {
|
} else if ( !t.indexOf("/") && !context.ownerDocument ) {
|
||||||
context = context.documentElement;
|
context = context.documentElement;
|
||||||
|
@ -129,6 +133,7 @@ jQuery.extend({
|
||||||
var r = [];
|
var r = [];
|
||||||
last = t;
|
last = t;
|
||||||
|
|
||||||
|
// DEPRECATED
|
||||||
t = jQuery.trim(t).replace( /^\/\//, "" );
|
t = jQuery.trim(t).replace( /^\/\//, "" );
|
||||||
|
|
||||||
var foundToken = false;
|
var foundToken = false;
|
||||||
|
@ -152,6 +157,7 @@ jQuery.extend({
|
||||||
if ( t.indexOf(" ") == 0 ) continue;
|
if ( t.indexOf(" ") == 0 ) continue;
|
||||||
foundToken = true;
|
foundToken = true;
|
||||||
} else {
|
} else {
|
||||||
|
// (.. and /) DEPRECATED
|
||||||
re = /^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;
|
re = /^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;
|
||||||
|
|
||||||
if ( (m = re.exec(t)) != null ) {
|
if ( (m = re.exec(t)) != null ) {
|
||||||
|
@ -174,6 +180,7 @@ jQuery.extend({
|
||||||
|
|
||||||
if ( m == "+" ) break;
|
if ( m == "+" ) break;
|
||||||
}
|
}
|
||||||
|
// DEPRECATED
|
||||||
} else
|
} else
|
||||||
r.push( ret[j].parentNode );
|
r.push( ret[j].parentNode );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue