Created
March 26, 2012 14:21
-
-
Save kdabir/2205430 to your computer and use it in GitHub Desktop.
get jquery cache size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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