Skip to content

Commit

Permalink
Update check is first change
Browse files Browse the repository at this point in the history
  • Loading branch information
explooosion committed Apr 14, 2018
1 parent 25a3dbf commit c291e25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "agm-direction",
"description": "directive for agm (not official)",
"version": "0.5.0",
"version": "0.5.1",
"scripts": {
"build": "gulp build",
"build:watch": "gulp",
Expand Down
5 changes: 4 additions & 1 deletion src/agm-direction.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export class AgmDirection implements OnChanges, OnInit {
} catch (e) { }
} else {

if (this.isFirstChange) return;
if (this.isFirstChange) {
this.isFirstChange = false;
return;
}

/**
* When renderOptions are not first change then reset the display
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "agm-direction",
"description": "directive for agm (not official)",
"version": "0.5.0",
"version": "0.5.1",
"repository": {
"type": "git",
"url": "https://github.com/explooosion/Agm-Direction"
Expand Down

0 comments on commit c291e25

Please sign in to comment.