bookshelf: Don't use class before declaration (#15982)

This commit is contained in:
Andy
2017-04-19 10:10:56 -07:00
committed by GitHub
parent e13ecba965
commit 8966463273
+5 -5
View File
@@ -257,11 +257,6 @@ class Library extends bookshelf.Model<Library> {
/* new Model(), see http://bookshelfjs.org/#Model */
{
new Book({
title: "One Thousand and One Nights",
author: "Scheherazade"
});
class Book extends bookshelf.Model<Book> {
get tableName() { return 'documents'; }
@@ -273,6 +268,11 @@ class Library extends bookshelf.Model<Library> {
});
}
}
new Book({
title: "One Thousand and One Nights",
author: "Scheherazade"
});
}
/* model.initialize(), see http://bookshelfjs.org/#Model-instance-initialize */