app/static/scripts/globalScripts.js
// has to remove the card element, to force update
has to remove the card element, to force update
has to remove the card element to force update
update_profile(javascript_object) { 
        this.givenName = javascript_object.givenName;
        this.familyName = javascript_object.familyName;
        this.dateOfBirth = javascript_object.dateOfBirth;
        this.details = javascript_object.details;
        var elem = this.cardHolder;
        elem.remove();
        this.cardHolder = undefined;
        this.hasCard = false;
    }
update_profile ( javascript_object ) { this . givenName = javascript_object . givenName ; this . familyName = javascript_object . familyName ; this . dateOfBirth = javascript_object . dateOfBirth ; this . details = javascript_object . details ; var elem = this . cardHolder ; elem . remove ( ) ; this . cardHolder = undefined ; this . hasCard = false ; }
has to remove the card element, to force update
has to remove the card element to force update