Yorkies are prone to pancreatitis, unfortunately. A little bit of anything fatty could have triggered her attack. Sometimes attacks are not triggered by food at all, but an infection or even a metabolic disorder.
This explains pancreatitis:
Pancreatitis (Inflammation) in Dogs