From f809daf9f2a3c69fedd7d4846e85ff4b7e540c95 Mon Sep 17 00:00:00 2001
From: WebDevNerdStuff
-
Name | -Type | -Default | -Description | -
---|---|---|---|
callback | -Function | -null | -The callback function. | -
destroyBus | -Boolean | -true | -Determines if a bus $on event is destroyed automatically. | -
name | -String | -easter-egg | -Identifier & used for even bus callback. | -
pattern | -Array | -['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', -'ArrowRight', 'b', -'a'] | -The key/click combination a user does to trigger easter egg. The default combination is the -konami code. | -
target | -String | -div | -Use this to target DOM elements, Id's, or Class Names. Used with click events. | -
triggered | -Function | -null | -Same functionality as the callback option. | -
type | -String | -keydown | -The type of action the trigger will be listening for. | -
withBus | -Boolean | -false | -Determines if a bus event is emitted. | -
Name | -Response | -Description | -
---|---|---|
callback | -$event | -The callback event handler. If you use $event it will return the easter egg options object. | -
triggered | -$event | -Same functionality as the callback event handler. | -