Skip to content

Instantly share code, notes, and snippets.

@zkareemz
zkareemz / jquery-attached-events
Last active August 29, 2015 14:18
Get all jquery attached events
// This is a simple function to get all the attached jquery events on all the DOM elements
// you will find a new data attribute on the elements that has events attached to it.
(function() {
if (window.jQuery) {
var elms = [],
elm = {},
attrs = "",
evTypes = 0,
evCounter = 0,
elmCounter = 0,
@zkareemz
zkareemz / javascript object type
Created February 14, 2016 14:21
Get the javascript object type
function getType(o){
return Object.prototype.toString.call(o).split(' ').pop().replace(']','').toLowerCase();
}