Showing
1 changed file
with
16 additions
and
11 deletions
@@ -158,15 +158,20 @@ function reMarginFooter(fixedElement) { | @@ -158,15 +158,20 @@ function reMarginFooter(fixedElement) { | ||
158 | $footer.removeClass('hide'); | 158 | $footer.removeClass('hide'); |
159 | }()); | 159 | }()); |
160 | 160 | ||
161 | -(function(w,d,s,j,f){ | ||
162 | - w['YohoAcquisitionObject']=f; | ||
163 | - w[f]=function(){w[f].p=arguments;}; | ||
164 | - var a=d.createElement(s); | ||
165 | - var m=d.getElementsByTagName(s)[0]; | ||
166 | - a.async=1; | ||
167 | - a.src=j; | ||
168 | - m.parentNode.insertBefore(a,m); | ||
169 | -})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas-debug.js','_yas'); | 161 | +(function(w, d, s, j, f) { |
162 | + var a = d.createElement(s); | ||
163 | + var m = d.getElementsByTagName(s)[0]; | ||
164 | + | ||
165 | + w.YohoAcquisitionObject = f; | ||
166 | + | ||
167 | + w[f] = function() { | ||
168 | + w[f].p = arguments; | ||
169 | + }; | ||
170 | + | ||
171 | + a.async = 1; | ||
172 | + a.src = j; | ||
173 | + m.parentNode.insertBefore(a, m); | ||
174 | +})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas-debug.js', '_yas'); | ||
170 | 175 | ||
171 | (function() { | 176 | (function() { |
172 | var uid = getUid(); | 177 | var uid = getUid(); |
@@ -221,8 +226,8 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | @@ -221,8 +226,8 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | ||
221 | //为了使setTimteout的尽可能的接近每秒60帧的效果 | 226 | //为了使setTimteout的尽可能的接近每秒60帧的效果 |
222 | var timeToCall = Math.max(0, 16 - (currTime - lastTime)); | 227 | var timeToCall = Math.max(0, 16 - (currTime - lastTime)); |
223 | var id = window.setTimeout(function() { | 228 | var id = window.setTimeout(function() { |
224 | - callback(currTime + timeToCall); | ||
225 | - }, timeToCall); | 229 | + callback(currTime + timeToCall); |
230 | + }, timeToCall); | ||
226 | 231 | ||
227 | lastTime = currTime + timeToCall; | 232 | lastTime = currTime + timeToCall; |
228 | return id; | 233 | return id; |
-
Please register or login to post a comment