Skip to content

Commit

Permalink
Remove a static function, #3027
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Jun 28, 2021
1 parent 5625620 commit 0b78e33
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,6 @@ export class Bindings {
* The base class for SurveyJS objects.
*/
export class Base {
public static isSurveyElement(val: any): boolean {
if (!val) return false;
if (Array.isArray(val)) {
if (!!(<any>val).onArrayChanged) return true;
return val.length > 0 && Base.isSurveyElement(val[0]);
}
return !!val.getType && !!val.onPropertyChanged;
}
public static get commentPrefix(): string {
return settings.commentPrefix;
}
Expand Down

0 comments on commit 0b78e33

Please sign in to comment.