client/src/models/network.js
function (nick) {
            var that = this,
                query;

            // Check if we have the panel already. If not, create it
            query = that.panels.getByName(nick);
            if (!query) {
                query = new _kiwi.model.Query({name: nick, network: this});
                that.panels.add(query);
            }

            // In all cases, show the demanded query
            query.view.show();

            return query;
        }
function (nick) {
            var that = this,
                query;

            // Check if we have the panel already. If not, create it
            query = that.panels.getByName(nick);
            if (!query) {
                query = new _kiwi.model.Query({name: nick, network: this});
                that.panels.add(query);
            }

            // In all cases, show the demanded query
            query.view.show();

            return query;
        }
function ( nick ) { var that = this , query ; // Check if we have the panel already. If not, create it query = that . panels . getByName ( nick ) ; if ( ! query ) { query = new _kiwi . model . Query ( { name : nick , network : this } ) ; that . panels . add ( query ) ; } // In all cases, show the demanded query query . view . show ( ) ; return query ; }
Create a new query panel
Create a new query panel