From c0cf47138ec2efe4c0a27de9a503bb0d74d99d5f Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 5 Dec 2017 16:59:36 +0300 Subject: Add a comment --- packages/0x.js/src/utils/class_utils.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'packages') 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]; -- cgit