aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/0x.js/src/utils/class_utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/0x.js/src/utils/class_utils.ts b/packages/0x.js/src/utils/class_utils.ts
index de7e99cd9..b89d3ba32 100644
--- a/packages/0x.js/src/utils/class_utils.ts
+++ b/packages/0x.js/src/utils/class_utils.ts
@@ -1,6 +1,7 @@
import * as _ from 'lodash';
export const classUtils = {
+ // This is usefull for classes that have nested methods. Nested methods don't get binded out of the box.
bindAll(self: any, exclude: string[] = ['contructor'], thisArg?: any): void {
for (const key of Object.getOwnPropertyNames(self)) {
const val = self[key];