Skip to content

Commit

Permalink
fix Zepto: 丢失 Ajax 请求的 options
Browse files Browse the repository at this point in the history
  • Loading branch information
nuysoft committed Jun 23, 2015
1 parent 870b138 commit f38933f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mockjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if (typeof Zepto != 'undefined') {
Zepto.ajax = function(options) {
var item = find(options)
if (item) {
var data = Mock.mock(item.template)
var data = convert(item, options)
if (options.success) options.success(data, xhr, options)
if (options.complete) options.complete(xhr.status, xhr, options)
return xhr
Expand Down

1 comment on commit f38933f

@nuysoft
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#66

Please sign in to comment.