Add a comment

This commit is contained in:
Leonid Logvinov 2017-12-05 16:59:36 +03:00
parent e1127dc2e8
commit c0cf47138e
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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];