Skip to content

Instantly share code, notes, and snippets.

@DenimTornado
Forked from kdabir/jq_cache_size.js
Created August 25, 2014 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DenimTornado/3da29739f70fea589537 to your computer and use it in GitHub Desktop.
Save DenimTornado/3da29739f70fea589537 to your computer and use it in GitHub Desktop.
function lengthOf(object) {
var element_count = 0;
for (e in object) { element_count++; }
return element_count;
}
function _jqCacheSize(){return lengthOf($.cache);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment