@@ -1462,7 +1462,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
14621462 * the name of the database, the name of the table, and the row id of the
14631463 * changed row.
14641464 * - Set to `null` to unregister.
1465- *@returns {void }
1465+ *@returns {Database } The database object. Useful for method chaining
14661466 */
14671467Database . prototype [ "updateHook" ] = function updateHook ( callback ) {
14681468if ( this . updateHookFunctionPtr ) {
@@ -1474,7 +1474,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
14741474
14751475if ( ! callback ) {
14761476// no new callback to register
1477- return ;
1477+ return this ;
14781478}
14791479
14801480// void(*)(void *,int ,char const *,char const *,sqlite3_int64)
@@ -1521,6 +1521,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
15211521this . updateHookFunctionPtr ,
152215220 // passed as the first arg to wrappedCallback
15231523) ;
1524+ return this ;
15241525} ;
15251526
15261527/**