Authored by 梁志锋

yas版本升级

... ... @@ -158,15 +158,20 @@ function reMarginFooter(fixedElement) {
$footer.removeClass('hide');
}());
(function(w,d,s,j,f){
w['YohoAcquisitionObject']=f;
w[f]=function(){w[f].p=arguments;};
var a=d.createElement(s);
var m=d.getElementsByTagName(s)[0];
a.async=1;
a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas-debug.js','_yas');
(function(w, d, s, j, f) {
var a = d.createElement(s);
var m = d.getElementsByTagName(s)[0];
w.YohoAcquisitionObject = f;
w[f] = function() {
w[f].p = arguments;
};
a.async = 1;
a.src = j;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas-debug.js', '_yas');
(function() {
var uid = getUid();
... ... @@ -221,8 +226,8 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
//为了使setTimteout的尽可能的接近每秒60帧的效果
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function() {
callback(currTime + timeToCall);
}, timeToCall);
callback(currTime + timeToCall);
}, timeToCall);
lastTime = currTime + timeToCall;
return id;
... ...