Skip to content
Permalink
Browse files

Core: Shortened data selector implementation and moved down to other …

…core modifications.
  • Loading branch information
scottgonzalez committed Aug 15, 2008
1 parent 7f2b0b0 commit 900d9119deba6065b28e61a0fc20ca6f823625d1
Showing with 3 additions and 5 deletions.
  1. +3 −5 ui/ui.core.js
@@ -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");

0 comments on commit 900d911

Please sign in to comment.
You can’t perform that action at this time.