Sha256: c47c12a9924d8e6df9d6a0fa3f4a89f1e3ca8dc12ffc10236ce0386ff9df958a

Contents?: true

Size: 153 Bytes

Versions: 11

Compression:

Stored size: 153 Bytes

Contents

// Determine if an element exists.
//  i.e. if($('.some-class').exists()){ // do something }
jQuery.fn.exists = function() {
  return this.length > 0;
};

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.3.3 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.3.2 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.3.1 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.3 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.2 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.1.1 app/assets/javascripts/jquery.exists.js
browsercms-artirix-4.0.0.rc1.art4 app/assets/javascripts/jquery.exists.js
browsercms-4.0.0.rc1 app/assets/javascripts/jquery.exists.js
browsercms-4.0.0.beta app/assets/javascripts/jquery.exists.js
browsercms-4.0.0.alpha app/assets/javascripts/jquery.exists.js