Minor rollback: We dont actually need to pass the context to beforeUpdate()

This commit is contained in:
Sam Georges 2014-05-15 14:21:40 +10:00
parent 8019cd7a85
commit efd9e5bb90
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ if (window.jQuery === undefined)
/*
* Halt here if beforeUpdate() or data-request-before-update returns false
*/
if (this.options.beforeUpdate.apply(this, [context, data, textStatus, jqXHR]) === false) return
if (this.options.beforeUpdate.apply(this, [data, textStatus, jqXHR]) === false) return
if (options.evalBeforeUpdate && eval('(function($el, context, data, textStatus, jqXHR) {'+options.evalBeforeUpdate+'}($el, context, data, textStatus, jqXHR))') === false) return
/*