Test case for jQuery Ticket 7930

test case for triggering event on plain js object

by jitter

HTML

<script src="http://getfirebug.com/firebug-lite-debug.js"></script>
<script src="http://code.jquery.com/jquery-1.1.js"></script>

JavaScript

var obj = {
    hello: function() {
        console.log("hello prop");
    }
};
$(function() {
    $(obj).bind("hello", function() {
        console.log("hello bind");
    });

    $(obj).trigger("hello");
})