Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.66 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Generated JS
  2. function(exports, require, module) {(function() {
  3.   var __slice = Array.prototype.slice;
  4.  
  5.   exports.Remoting = {};
  6.  
  7.   exports.Remoting.execute = function() {
  8.     var args, callback, escapeResults, remotedFunction, scope, _i;
  9.     remotedFunction = arguments[0], args = 5 <= arguments.length ? __slice.call(arguments, 1, _i = arguments.length - 3) : (_i = 1, []), callback = arguments[_i++], escapeResults = arguments[_i++], scope = arguments[_i++];
  10.     callback = _.bind(callback, scope);
  11.     if (escapeResults == null) escapeResults = true;
  12.     args.push(callback);
  13.     args.push(escapeResults);
  14.     return remotedFunction.apply(scope, args);
  15.   };
  16.  
  17. }).call(this);