diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 21:59:36 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 21:59:36 +0800 |
commit | c0cf47138ec2efe4c0a27de9a503bb0d74d99d5f (patch) | |
tree | 0787790484a41f8187b856d866336c957c6aa44f /packages/0x.js | |
parent | e1127dc2e850490e78a6a14366a7421ffc3a9fc9 (diff) | |
download | dexon-sol-tools-c0cf47138ec2efe4c0a27de9a503bb0d74d99d5f.tar.gz dexon-sol-tools-c0cf47138ec2efe4c0a27de9a503bb0d74d99d5f.tar.zst dexon-sol-tools-c0cf47138ec2efe4c0a27de9a503bb0d74d99d5f.zip |
Add a comment
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/utils/class_utils.ts | 1 |
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]; |