1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Old API: Mark $ method as deprecated

This commit is contained in:
Allan Jardine 2013-11-18 13:43:34 +00:00
parent a423c0f457
commit d47da33826
2 changed files with 5 additions and 4 deletions

View File

@ -1 +1 @@
9dc32c5fa50fabd9447a9e67fec49a6275c7bd5b c03c559f0b0a8a815ab1dab80fe72d6806ce78a5

View File

@ -4787,6 +4787,7 @@
* 'current' and filter is 'applied', regardless of what they might be given as. * 'current' and filter is 'applied', regardless of what they might be given as.
* @returns {object} jQuery object, filtered by the given selector. * @returns {object} jQuery object, filtered by the given selector.
* @dtopt API * @dtopt API
* @deprecated Since v1.10
* *
* @example * @example
* $(document).ready(function() { * $(document).ready(function() {
@ -4803,7 +4804,7 @@
* // Filter to rows with 'Webkit' in them, add a background colour and then * // Filter to rows with 'Webkit' in them, add a background colour and then
* // remove the filter, thus highlighting the 'Webkit' rows only. * // remove the filter, thus highlighting the 'Webkit' rows only.
* oTable.fnFilter('Webkit'); * oTable.fnFilter('Webkit');
* oTable.$('tr', {"filter": "applied"}).css('backgroundColor', 'blue'); * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
* oTable.fnFilter(''); * oTable.fnFilter('');
* } ); * } );
*/ */
@ -4855,10 +4856,10 @@
* *
* // Filter to 'Webkit' and get all data for * // Filter to 'Webkit' and get all data for
* oTable.fnFilter('Webkit'); * oTable.fnFilter('Webkit');
* var data = oTable._('tr', {"filter": "applied"}); * var data = oTable._('tr', {"search": "applied"});
* *
* // Do something with the data * // Do something with the data
* alert( data.length+" rows matched the filter" ); * alert( data.length+" rows matched the search" );
* } ); * } );
*/ */
this._ = function ( sSelector, oOpts ) this._ = function ( sSelector, oOpts )