UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

18 lines (12 loc) 337 B
define(['../array/slice'], function (slice) { /** * Delays the call of a function within a given context. */ function timeout(fn, millis, context){ var args = slice(arguments, 3); return setTimeout(function() { fn.apply(context, args); }, millis); } return timeout; });