jquery/jquery — pull request #1055 by buu700 (2012-12-05 00:19:29+00:00)
Title: "Created" event

This is undeniably at least somewhat hackish, and I'm sure I've broken at least a couple conventions established in the code base, but would anyone be interested in an event like this?

Usage:

$('foo').on('created', function () { alert($(this).prop('tagName').toLowerCase() + ' created.'); });

$('html').append('');

/* Alerts 'foo created.' */