Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Refactored "isBootsrapped" property.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaschoal committed Apr 15, 2018
1 parent e8bb34d commit 23d2962
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion demo/aspnetcore_signalr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"jquery": "3.2.1",
"ng-chat": "^1.0.9",
"ng-chat": "^1.0.10",
"ng2-loading-bar": "0.0.6",
"reflect-metadata": "^0.1.10",
"rxjs": "5.4.2",
Expand Down
2 changes: 1 addition & 1 deletion demo/offline_bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"core-js": "^2.5.3",
"rxjs": "^5.5.6",
"zone.js": "^0.8.20",
"ng-chat": "^1.0.9"
"ng-chat": "^1.0.10"
},
"devDependencies": {
"@angular/cli": "^1.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/ng-chat/ng-chat.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="ng-chat" *ngIf="isBootsrapped">
<div id="ng-chat" *ngIf="isBootstrapped">
<div id="ng-chat-people" [ngClass]="{'ng-chat-people-collapsed':isCollapsed}">
<a href="javascript:void(0);" class="ng-chat-title shadowed" (click)="onChatTitleClicked($event)">
<span>
Expand Down
6 changes: 3 additions & 3 deletions src/ng-chat/ng-chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class NgChat implements OnInit {

windows: Window[] = [];

private isBootsrapped: boolean = false;
isBootstrapped: boolean = false;

@ViewChildren('chatMessages') chatMessageClusters: any;

Expand Down Expand Up @@ -163,10 +163,10 @@ export class NgChat implements OnInit {

this.bufferAudioFile();

this.isBootsrapped = true;
this.isBootstrapped = true;
}

if (!this.isBootsrapped){
if (!this.isBootstrapped){
console.error("ng-chat component couldn't be bootstrapped.");

if (this.userId == null){
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-chat",
"version": "1.0.9",
"version": "1.0.10",
"peerDependencies": {
"@angular/common": "*",
"@angular/core": "*",
Expand Down

0 comments on commit 23d2962

Please sign in to comment.