提交 7b8c8358 编写于 作者: NoSubject's avatar NoSubject

修复重复请求同步时的callback执行

上级 767cb14c
......@@ -1383,7 +1383,8 @@ if (!window.o2) {
* //获
* node.loadHtmlText(html, {"bind": json});
*/
this.o2.loadHtmlText = this.o2.injectHtml = function (html, op) {
this.o2.loadHtmlText = this.o2.injectHtml = function (html, options) {
var op = (_typeOf(options) === "object") ? _getHtmlOptions(options) : _getHtmlOptions(null);
_injectHtml(op, html);
};
if (window.Element) Element.prototype.loadHtmlText = Element.prototype.injectHtml = function (html, options) {
......@@ -2059,11 +2060,9 @@ if (!window.o2) {
_restful = function (method, address, data, callback, async, withCredentials, cache) {
var p = null;
if (method.toLowerCase()==="get"){
if (method.toLowerCase()==="get" && async!==false){
p = _checkRestful(address, callback);
//if (p) return p;
}else{
}
var _addr = address;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册