Core: Shortened data selector implementation and moved down to other core modifications.

This commit is contained in:
Scott González 2008-08-15 00:31:50 +00:00
parent 7f2b0b0db1
commit 900d9119de

View File

@ -9,11 +9,6 @@
*/
;(function($) {
// This adds a selector to check if data exists.
jQuery.extend(jQuery.expr[':'], {
data: "jQuery.data(a, m[3])"
});
$.ui = {
plugin: {
add: function(module, option, set) {
@ -76,6 +71,9 @@ $.ui = {
/** jQuery core modifications and additions **/
// This adds a selector to check if data exists.
jQuery.expr[':'].data = "jQuery.data(a, m[3])";
var _remove = $.fn.remove;
$.fn.remove = function() {
$("*", this).add(this).triggerHandler("remove");