TinyMCE 3.4 Plugin and onClick

I have the following code:

(function() {
    tinymce.create('tinymce.plugins.usabilityPlugin', {
        init : function(ed, url) {
            var t = this;
            t.editor = ed;
        },

        click : function(ed) {
            ed.onClick.add(function(ed, e) {
                alert('test');
            });
        },

    });


    tinymce.PluginManager.add('usability', tinymce.plugins.usabilityPlugin);
})();

I’m basically trying to understand why the alert() isn’t working for the intended onClick I’m trying to implement here… There’s no errors in Firefox from what I can tell (using Firebug, too, so I’ve tried the console.log approach and it doesn’t tell me anything either). I think I’m probably misunderstanding how these classes are created in TinyMCE nomenclature (i.e. - are “init” and “click”, in essence, methods?), so any insight is appreciated.

Sorry everyone… Think I posted too soon.


(function() {     tinymce.create('tinymce.plugins.usabilityPlugin', {         init : function(ed, url) {             var t = this;             t.editor = ed;
            ed.onClick.add(function(ed, e) {                 alert('test');             });         },     });       tinymce.PluginManager.add('usability', tinymce.plugins.usabilityPlugin); })();

EDIT:
…okay, I’m not sure what happened to the above. I went back to try and fix it… Oh well.
(Mods, feel free to brush-up if you need to.)