function addHook(name, fun) {
                if (!hooks.hasOwnProperty(name)) {
                    hooks[name] = [];
                }
                hooks[name].push(fun);
            }
// The hooks for widget objects.
The hooks for widget objects.
The hooks for widget objects .
function addHook(name, fun) {
                if (!hooks.hasOwnProperty(name)) {
                    hooks[name] = [];
                }
                hooks[name].push(fun);
            }
function addHook ( name , fun ) { if ( ! hooks . hasOwnProperty ( name ) ) { hooks [ name ] = [ ] ; } hooks [ name ] . push ( fun ) ; }
The hooks for widget objects.
The hooks for widget objects .