61b832c55f5a65a16ac2fe685105689bae978cb8
[platform/framework/web/crosswalk-tizen.git] /
1 define(['../array/slice'], function (slice) {
2
3     /**
4      * Delays the call of a function within a given context.
5      */
6     function timeout(fn, millis, context){
7
8         var args = slice(arguments, 3);
9
10         return setTimeout(function() {
11             fn.apply(context, args);
12         }, millis);
13     }
14
15     return timeout;
16
17 });