0ecb32f68065c857da1205c92d00e7c335d9e77e
[platform/framework/web/crosswalk-tizen.git] /
1 define(function(){
2     /**
3     * Count number of full steps.
4     */
5     function countSteps(val, step, overflow){
6         val = Math.floor(val / step);
7
8         if (overflow) {
9             return val % overflow;
10         }
11
12         return val;
13     }
14
15     return countSteps;
16 });