jackbone.js
function (method) {
            if (this.subviews.length !== 0) {
                var params = slice.call(arguments);
                params.shift();
                _.each(this.subviews, function (s) {
                    if (s[method]) {
                        s[method].apply(s, params);
                    }
                });
            }
        }
function (method) {
            if (this.subviews.length !== 0) {
                var params = slice.call(arguments);
                params.shift();
                _.each(this.subviews, function (s) {
                    if (s[method]) {
                        s[method].apply(s, params);
                    }
                });
            }
        }
function ( method ) { if ( this . subviews . length !== 0 ) { var params = slice . call ( arguments ) ; params . shift ( ) ; _ . each ( this . subviews , function ( s ) { if ( s [ method ] ) { s [ method ] . apply ( s , params ) ; } } ) ; } }
Call the given method for all subviews. Passing extra arguments is posible, they will be passed to subviews too.
Call the given method for all subviews . Passing extra arguments is posible they will be passed to subviews too .