If you think back to how the dog's body posture looked when he was barking at you, and cross-check this chart, you'll probably be able to figure out where he was mentally and emotionally. I'm thinking the chances that he was threatened or otherwise in attack mode are very, very slim.