package/EmberSockets.js
function _getController(name) {

            // Format the `name` to match what the lookup container is expecting, and then
            // we'll locate the controller from the `container`.
            name = `controller:${name}`;
            var controller = Ember.getOwner(this).lookup(name);

            if (!controller || (this.NAMESPACE in controller === false)) {
                // Don't do anything with this controller if it hasn't defined a `sockets` hash.
                return false;
            }

            return controller;

        }
function _getController(name) {

            // Format the `name` to match what the lookup container is expecting, and then
            // we'll locate the controller from the `container`.
            name = `controller:${name}`;
            var controller = Ember.getOwner(this).lookup(name);

            if (!controller || (this.NAMESPACE in controller === false)) {
                // Don't do anything with this controller if it hasn't defined a `sockets` hash.
                return false;
            }

            return controller;

        }
function _getController ( name ) { // Format the `name` to match what the lookup container is expecting, and then // we'll locate the controller from the `container`. name = ` ${ name } ` ; var controller = Ember . getOwner ( this ) . lookup ( name ) ; if ( ! controller || ( this . NAMESPACE in controller === false ) ) { // Don't do anything with this controller if it hasn't defined a `sockets` hash. return false ; } return controller ; }
Responsible for retrieving a controller if it exists, and if it has defined a `events` hash.

@method _getController
@param name {String}
@return {Object|Boolean}
@private
Responsible for retrieving a controller if it exists and if it has defined a events hash .