Durable Objects » Yahoo! User Interface Blog
Durable Objects » Yahoo! User Interface Blog
function durable(parameters) {
var that = {} or the product of another durable constructor;
var private variables;
function method() {
…
}
that.method = method;
return that;
}
Define all of your methods as private methods. The methods you choose to
expose to the public get copied into that. None of the functions defined or
inherited make use of that or this.
沒有留言:
張貼留言