code: function(result) {
        if (this._resolved || this._rejected) {
          throw "A promise was resolved even though it had already been " +
            (this._resolved ? "resolved" : "rejected") + ".";
        }
        this._resolved = true;
        this._result = arguments;
        var results = arguments;
        Parse._arrayEach(this._resolvedCallbacks, function(resolvedCallback) {
          resolvedCallback.apply(this, results);
        });
        this._resolvedCallbacks = [];
        this._rejectedCallbacks = [];
      }
docs: Marks this promise as fulfilled, firing any callbacks waiting on it.
  @param {Object} result the result to pass to the callbacks.