blocks/bla/bla.js
function (methodName, params, execOptions) {
                var defer = vow.defer();
                var url = this._basePath + methodName;
                var data = JSON.stringify(params);

                sendAjaxRequest(url, data, execOptions).then(
                    this._resolvePromise.bind(this, defer),
                    this._rejectPromise.bind(this, defer)
                );

                return defer.promise();
            }
function (methodName, params, execOptions) {
                var defer = vow.defer();
                var url = this._basePath + methodName;
                var data = JSON.stringify(params);

                sendAjaxRequest(url, data, execOptions).then(
                    this._resolvePromise.bind(this, defer),
                    this._rejectPromise.bind(this, defer)
                );

                return defer.promise();
            }
function ( methodName , params , execOptions ) { var defer = vow . defer ( ) ; var url = this . _basePath + methodName ; var data = JSON . stringify ( params ) ; sendAjaxRequest ( url , data , execOptions ) . then ( this . _resolvePromise . bind ( this , defer ) , this . _rejectPromise . bind ( this , defer ) ) ; return defer . promise ( ) ; }
Executes method immediately.

@param {String} methodName Method name.
@param {Object} params Data should be sent to the method.
@param {Object} execOptions Exec-specific options.
@returns {vow.Promise}
Executes method immediately .