documentation/test/fixture/this-class.input.js
Tom MacWright 1c48a4f80d Fix membership assignment for old-fashioned prototype members (#599)
Fixes #598

This _changes behavior_: previously in the case of

```js
/** base */
var Foo = function Bar() {
  {
    /** */
    this.baz = 0;
  }
};
```

We assigned baz to Bar. Now we will assign Baz to Foo. I believe this is
right, since in JavaScript Bar is not actually bound in this code.
2016-11-16 11:32:59 -05:00

14 lines
242 B
JavaScript

/** @module bookshelf */
/** @class */
var Book = function(title) {
/** The title of the book. */
this.title = title;
}
/** @class */
this.BookShelf = function(title) {
/** The title of the bookshelf. */
this.title = title;
}