4 * @fires Bakery#event:donutOrdered
8 * Fired when some cake is eaten.
9 * @name Kitchen#event:cakeEaten
11 * @param {Number} pieces The number of pieces eaten.
15 * Find out if cake was eaten.
16 * @name Kitchen#cakeEaten
18 * @param {Boolean} wasEaten
24 * @fires Kitchen#event:cakeEaten
34 * Fired when a donut order is made.
35 * @name Bakery#event:donutOrdered
37 * @param {Event} e The event object.
38 * @param {String} [e.topping] Optional sprinkles.
43 * @borrows Bakery#event:donutOrdered as this.event:cakeOrdered
49 CakeShop
.prototype.icingReady
= function(isPink
) {
53 function amHungry(/**Boolean*/enoughToEatAHorse
) {