aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-24 01:28:07 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-24 01:28:07 +0000
commit257eaf7ee32df66ddd0a3333a5b6a829b9d388ef (patch)
treee83ca5be7d2fd12b5227659bddc8d477755fa132
parent4df20c0c1b8506981087dd8702f3a076bd57d017 (diff)
downloadjquery-257eaf7ee32df66ddd0a3333a5b6a829b9d388ef.tar.gz
jquery-257eaf7ee32df66ddd0a3333a5b6a829b9d388ef.zip
Marked all the appropriate methods as being deprecated for the 1.1.4 release (in preparation for 1.2).
-rw-r--r--src/ajax/ajax.js3
-rw-r--r--src/jquery/jquery.js1
-rw-r--r--src/selector/selector.js7
3 files changed, 11 insertions, 0 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 0b2786a06..aa6275410 100644
--- a/src/ajax/ajax.js
+++ b/src/ajax/ajax.js
@@ -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).
* @cat Ajax
*/
+ // DEPRECATED
loadIfModified: function( url, params, callback ) {
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.
* @cat Ajax
*/
+ // DEPRECATED
getIfModified: function( url, data, callback, type ) {
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.
* @cat Ajax
*/
+ // DEPRECATED
ajaxTimeout: function( timeout ) {
jQuery.ajaxSettings.timeout = timeout;
},
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 9cff1cd24..4c5941b20 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -2422,6 +2422,7 @@ jQuery.each( {
* @param String str The string that will be contained within the text of an element.
* @cat DOM/Traversing
*/
+// DEPRECATED
jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
jQuery.fn[ n ] = function(num,fn) {
return this.filter( ":" + n + "(" + num + ")", fn );
diff --git a/src/selector/selector.js b/src/selector/selector.js
index bd8c7912d..b15ee7cde 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -58,6 +58,7 @@ jQuery.extend({
// :has()
has: "jQuery.find(m[3],a).length"
},
+ // DEPRECATED
"[": "jQuery.find(m[2],a).length"
},
@@ -66,6 +67,7 @@ jQuery.extend({
// Match: [@value='test'], [@foo]
/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
+ // DEPRECATED
// Match: [div], [div p]
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
@@ -107,11 +109,13 @@ jQuery.extend({
// Set the correct context (if none is provided)
context = context || document;
+ // DEPRECATED
// Handle the common XPath // expression
if ( !t.indexOf("//") ) {
//context = context.documentElement;
t = t.substr(2,t.length);
+ // DEPRECATED
// And the / root expression
} else if ( !t.indexOf("/") && !context.ownerDocument ) {
context = context.documentElement;
@@ -129,6 +133,7 @@ jQuery.extend({
var r = [];
last = t;
+ // DEPRECATED
t = jQuery.trim(t).replace( /^\/\//, "" );
var foundToken = false;
@@ -152,6 +157,7 @@ jQuery.extend({
if ( t.indexOf(" ") == 0 ) continue;
foundToken = true;
} else {
+ // (.. and /) DEPRECATED
re = /^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;
if ( (m = re.exec(t)) != null ) {
@@ -174,6 +180,7 @@ jQuery.extend({
if ( m == "+" ) break;
}
+ // DEPRECATED
} else
r.push( ret[j].parentNode );