function generateDisabledMethodStub(messagePrefix, opt_messageSuffix) {
  var message = messagePrefix + ' is not available in packaged apps.';
  if (opt_messageSuffix) message = message + ' ' + opt_messageSuffix;
  return function() {
    console.error(message);
    return;
  };
}
/**
 * Returns a function that logs a 'not available' error to the console and
 * returns undefined.
 *
 * @param {string} messagePrefix text to prepend to the exception message.
 */
Returns a function that logs a 'not available' error to the console and
returns undefined.

@param {string} messagePrefix text to prepend to the exception message.
Returns a function that logs a ' not available ' error to the console and returns undefined . @param { string } messagePrefix text to prepend to the exception message .
function generateDisabledMethodStub(messagePrefix, opt_messageSuffix) {
  var message = messagePrefix + ' is not available in packaged apps.';
  if (opt_messageSuffix) message = message + ' ' + opt_messageSuffix;
  return function() {
    console.error(message);
    return;
  };
}
function generateDisabledMethodStub ( messagePrefix , opt_messageSuffix ) { var message = messagePrefix + ' is not available in packaged apps.' ; if ( opt_messageSuffix ) message = message + ' ' + opt_messageSuffix ; return function ( ) { console . error ( message ) ; return ; } ; }
Returns a function that logs a 'not available' error to the console and
 returns undefined.
Returns a function that logs a ' not available ' error to the console and returns undefined .