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 (13 loc) 297 B
define(function () { function F(){} /** * Do fn.apply on a constructor. */ function ctorApply(ctor, args) { F.prototype = ctor.prototype; var instance = new F(); ctor.apply(instance, args); return instance; } return ctorApply; });