Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed May 19, 2016
2 parents f79b3bc + 5977012 commit b21002b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
English | [简体中文](./CHANGELOG_CN.md)


#### v1.2.1 (2016-05-16)

- [FIX] Fix data lost when sending a POST request


#### v1.2.0 (2016-05-11)

- [ADD] Add network panel
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[English](./CHANGELOG.md) | 简体中文


#### v1.2.1 (2016-05-16)

- 【修复】修复发送 POST 请求时丢失数据的问题


#### v1.2.0 (2016-05-11)

- 【新增】新增网络面板,可展示 AJAX 请求
Expand Down
4 changes: 2 additions & 2 deletions dist/vconsole.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/demo1.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1 class="page_title">Demo 1</h1>
});
$('.js_btn_ajax').on('tap', function(e) {
// 发起一个AJAX
$.get('ajax.php', function(resp) {
$.post('ajax.php', { id: Math.random() }, function(resp) {
console.log(resp);
});
showTips();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vconsole",
"version": "1.2.0",
"version": "1.2.1",
"description": "A virtual console panel for mobile page",
"homepage": "https://github.com/WechatFE/vConsole",
"main": "dist/vconsole.min.js",
Expand Down
3 changes: 2 additions & 1 deletion src/vconsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ vConsole.prototype._mokeAjax = function() {
};
window.XMLHttpRequest.prototype.send = function() {
var that = this;
var _arguments = arguments;
that._startTime = +new Date();
setTimeout(function() {
_send.apply(that, arguments);
_send.apply(that, _arguments);
}, 1);
};

Expand Down

0 comments on commit b21002b

Please sign in to comment.