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
15 lines (12 loc) • 380 B
JavaScript
;
var prime = require("prime")
var slice = require("mout/array/slice")
module.exports = prime({
parent: function(method){
var parent = this._parent || this.constructor.parent
this._parent = parent.constructor.parent
var result = parent[method].apply(this, slice(arguments, 1))
this._parent = parent
return result
}
})