Suggestions for improvements welcome!
const nonNavigableTarget = Symbol();
function safe(target, defaultValue) {
$('h1').bind('click', function() { | |
this.log('clicked!'); | |
}, console); | |
$('h2').bind('click', {msg: 'clicked!'}, function(e) { | |
this.log(e.data.msg); | |
}, console); |