node-query/node_modules/jsdoc/test/fixtures/objectpropertykeys.js

22 lines
371 B
JavaScript
Raw Normal View History

2014-10-20 16:56:45 -04:00
Call(
{
methodA: function()
{
this.id = this.createUUID();
},
valueOf: function()
{
return this.id;
},
toString: function()
{
return this.id;
}
});
//Simple inheritance model with correct constructor
function Test() {}
function Test2() { Test.call(this); }
Test2.prototype = Object.create(Test.prototype, {constructor: {value: Test2}});