examples/todo/js/t3-dev-build.js
function callModuleMethod(instance, method) {
		if (typeof instance[method] === 'function') {
			// Getting the rest of the parameters (the ones other than instance and method)
			instance[method].apply(instance, Array.prototype.slice.call(arguments, 2));
		}
	}
function callModuleMethod(instance, method) {
		if (typeof instance[method] === 'function') {
			// Getting the rest of the parameters (the ones other than instance and method)
			instance[method].apply(instance, Array.prototype.slice.call(arguments, 2));
		}
	}
function callModuleMethod ( instance , method ) { if ( typeof instance [ method ] === 'function' ) { // Getting the rest of the parameters (the ones other than instance and method) instance [ method ] . apply ( instance , Array . prototype . slice . call ( arguments , 2 ) ) ; } }
Calls a method on an object if it exists
@param {Box.Application~ModuleInstance} instance Module object to call the method on.
@param {string} method Name of method
@param {...*} [args] Any additional arguments are passed as function parameters (Optional)
@returns {void}
@private
Calls a method on an object if it exists