backbone-dynamodb.js
function wrapComplete(instance, options) {
	var complete = options.complete;

	options.complete = function(response) {
		if ( _.isFunction( complete ) ) {
			complete.call( this, instance, response, options );
		}
	};
}
function wrapComplete(instance, options) {
	var complete = options.complete;

	options.complete = function(response) {
		if ( _.isFunction( complete ) ) {
			complete.call( this, instance, response, options );
		}
	};
}
function wrapComplete ( instance , options ) { var complete = options . complete ; options . complete = function ( response ) { if ( _ . isFunction ( complete ) ) { complete . call ( this , instance , response , options ) ; } } ; }
Wraps the complete callback function inside another function to ensure it is executed with the right arguments.

@param {Backbone.DynamoDB.Model} instance
@param {Object} options
Wraps the complete callback function inside another function to ensure it is executed with the right arguments .