dist/ui/chico.js
function (name, shortcut, callback) {
                var evt,
                    evtCollection,
                    evtCollectionLenght;

                if (name === undefined) {
                    throw new Error('Shortcuts - "remove(name, shortcut, callback)": "name" parameter must be defined.');
                }

                if (shortcut === undefined) {
                    delete this._collection[name];
                    return this;
                }

                if (callback === undefined) {
                    delete this._collection[name][shortcut];
                    return this;
                }

                evtCollection = this._collection[name][shortcut];

                evtCollectionLenght = evtCollection.length;

                for (evt = 0; evt < evtCollectionLenght; evt += 1) {

                    if (evtCollection[evt] === callback) {
                        evtCollection.splice(evt, 1);
                    }
                }

                return this;

            }
function (name, shortcut, callback) {
                var evt,
                    evtCollection,
                    evtCollectionLenght;

                if (name === undefined) {
                    throw new Error('Shortcuts - "remove(name, shortcut, callback)": "name" parameter must be defined.');
                }

                if (shortcut === undefined) {
                    delete this._collection[name];
                    return this;
                }

                if (callback === undefined) {
                    delete this._collection[name][shortcut];
                    return this;
                }

                evtCollection = this._collection[name][shortcut];

                evtCollectionLenght = evtCollection.length;

                for (evt = 0; evt < evtCollectionLenght; evt += 1) {

                    if (evtCollection[evt] === callback) {
                        evtCollection.splice(evt, 1);
                    }
                }

                return this;

            }
function ( name , shortcut , callback ) { var evt , evtCollection , evtCollectionLenght ; if ( name === undefined ) { throw new Error ( 'Shortcuts - "remove(name, shortcut, callback)": "name" parameter must be defined.' ) ; } if ( shortcut === undefined ) { delete this . _collection [ name ] ; return this ; } if ( callback === undefined ) { delete this . _collection [ name ] [ shortcut ] ; return this ; } evtCollection = this . _collection [ name ] [ shortcut ] ; evtCollectionLenght = evtCollection . length ; for ( evt = 0 ; evt < evtCollectionLenght ; evt += 1 ) { if ( evtCollection [ evt ] === callback ) { evtCollection . splice ( evt , 1 ) ; } } return this ; }
Removes a callback from a shortcut with given name.
@param {String} name A name to remove from the collection.
@param {(ch.onkeybackspace | ch.onkeytab | ch.onkeyenter | ch.onkeyesc | ch.onkeyleftarrow | ch.onkeyuparrow | ch.onkeyrightarrow | ch.onkeydownarrow)} [shortcut] Shortcut to unsubscribe.
@param {Function} callback A given function.
@returns {Object} Retuns the ch.shortcuts.
@example
// Remove a callback from ESC key with "component" name.
ch.shortcuts.remove(ch.onkeyesc, 'component', component.hide);
Removes a callback from a shortcut with given name .