Skip to content

Commit

Permalink
Update readme for address cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
pkracer authored and gocanto committed Apr 2, 2017
1 parent e63d2d1 commit 7ffc3ea
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ new Vue({
{
//Set an event listener for 'setAddress'.
Vuemit.listen('setAddress', this.onAddressChanged);
Vuemit.listen('addressWasCleared', this.onAddressCleared);
},


Expand Down Expand Up @@ -135,7 +136,7 @@ new Vue({


/**
* The callback fired when the autocomplete event was fired.
* The callback fired when the autocomplete address change event was fired.
*
* @param {Object}
* @return {Void}
Expand All @@ -147,6 +148,18 @@ new Vue({
this.response = payload.response;
}
}

/**
* The callback fired when the autocomplete clear event was fired.
*
* @param {Object}
* @return {Void}
*/
onAddressCleared()
{
this.address = {};
this.response = {};
}
}

});
Expand Down

0 comments on commit 7ffc3ea

Please sign in to comment.