Skip to content

Instantly share code, notes, and snippets.

@tal
Created February 26, 2010 16:49
Show Gist options
  • Select an option

  • Save tal/315892 to your computer and use it in GitHub Desktop.

Select an option

Save tal/315892 to your computer and use it in GitHub Desktop.
$.hasData = function(element, settings){
return !!$(element).data(settings.dataName);
}
$.extend($.expr[':'], {
"rotateable": function(a, i, m) {
return $.hasImages(a,{dataName:'images'});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment