* [html5] update code formate
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2211546f Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2211546f Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2211546f Branch: refs/heads/0.15-dev Commit: 2211546fb2b9532aabd9fe9cb2ff276f2403cf04 Parents: 5507e9f Author: erha19 <faterr...@gmail.com> Authored: Thu Jul 20 11:07:48 2017 +0800 Committer: erha19 <faterr...@gmail.com> Committed: Thu Jul 20 11:07:48 2017 +0800 ---------------------------------------------------------------------- build/config.js | 2 +- html5/render/vue/utils/func.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2211546f/build/config.js ---------------------------------------------------------------------- diff --git a/build/config.js b/build/config.js index 4325f2b..e2de931 100644 --- a/build/config.js +++ b/build/config.js @@ -149,4 +149,4 @@ function now () { return (new Date(time)).toISOString().replace('T', ' ').substring(0, 16) } -module.exports = getConfig \ No newline at end of file +module.exports = getConfig http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2211546f/html5/render/vue/utils/func.js ---------------------------------------------------------------------- diff --git a/html5/render/vue/utils/func.js b/html5/render/vue/utils/func.js index bfea8df..d4112c47 100644 --- a/html5/render/vue/utils/func.js +++ b/html5/render/vue/utils/func.js @@ -133,7 +133,7 @@ export function throttle (func: Function, wait: number, callLastTime: boolean) { let last = 0 let lastTimer = null const lastTimeDuration = wait + (wait > 25 ? wait : 25) // plus half wait time. - return function (...args: Array <mixed>) { + return function (...args: Array<mixed>) { const context = this const time = new Date().getTime() if (time - last > wait) {