Change isCallbackSet from function call to Boolean constant

This commit is contained in:
Mansehej Singh
2020-07-30 02:30:44 +05:30
parent 968e71e038
commit fe0c51375a
2 changed files with 2 additions and 10 deletions

View File

@@ -118,7 +118,7 @@ class WSSharedDoc extends Y.Doc {
}
this.awareness.on('update', awarenessChangeHandler)
this.on('update', updateHandler)
if (isCallbackSet()) {
if (isCallbackSet) {
this.on('update', debounce(
callbackHandler,
CALLBACK_DEBOUNCE_WAIT,