Address feedback

This commit is contained in:
Leonid Logvinov
2017-12-05 22:02:27 +03:00
parent 3880f2b3cc
commit c64ec92fb2
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +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.
// This is useful for classes that have nested methods. Nested methods don't get bound out of the box.
bindAll(self: any, exclude: string[] = ['contructor'], thisArg?: any): void {
for (const key of Object.getOwnPropertyNames(self)) {
const val = self[key];