public/lib/jquery.sly.js
function trigger(name, arg1, arg2, arg3, arg4) {
            // Common arguments for events
            switch (name) {
                case 'active':
                    arg2 = arg1;
                    arg1 = $items;
                    break;

                case 'activePage':
                    arg2 = arg1;
                    arg1 = pages;
                    break;

                default:
                    arg4 = arg1;
                    arg1 = pos;
                    arg2 = $items;
                    arg3 = rel;
            }

            if (callbacks[name]) {
                for (var i = 0, l = callbacks[name].length; i < l; i++) {
                    callbacks[name][i].call(frame, arg1, arg2, arg3, arg4);
                }
            }

            if (o.domEvents && !parallax) {
                $frame.trigger(pluginName + ':' + name, [arg1, arg2, arg3, arg4]);
            }
        }
function trigger(name, arg1, arg2, arg3, arg4) {
            // Common arguments for events
            switch (name) {
                case 'active':
                    arg2 = arg1;
                    arg1 = $items;
                    break;

                case 'activePage':
                    arg2 = arg1;
                    arg1 = pages;
                    break;

                default:
                    arg4 = arg1;
                    arg1 = pos;
                    arg2 = $items;
                    arg3 = rel;
            }

            if (callbacks[name]) {
                for (var i = 0, l = callbacks[name].length; i < l; i++) {
                    callbacks[name][i].call(frame, arg1, arg2, arg3, arg4);
                }
            }

            if (o.domEvents && !parallax) {
                $frame.trigger(pluginName + ':' + name, [arg1, arg2, arg3, arg4]);
            }
        }
function trigger ( name , arg1 , arg2 , arg3 , arg4 ) { // Common arguments for events
 switch ( name ) { case 'active' : arg2 = arg1 ; arg1 = $items ; break ; case 'activePage' : arg2 = arg1 ; arg1 = pages ; break ; default : arg4 = arg1 ; arg1 = pos ; arg2 = $items ; arg3 = rel ; } if ( callbacks [ name ] ) { for ( var i = 0 , l = callbacks [ name ] . length ; i < l ; i ++ ) { callbacks [ name ] [ i ] . call ( frame , arg1 , arg2 , arg3 , arg4 ) ; } } if ( o . domEvents && ! parallax ) { $frame . trigger ( pluginName + ':' + name , [ arg1 , arg2 , arg3 , arg4 ] ) ; } }
Trigger callbacks for event.

@param  {String} name Event name.
@param  {Mixed}  argX Arguments passed to callback.

@return {Void}
Trigger callbacks for event .