Created
December 15, 2014 18:34
-
-
Save foxdonut/d71c17cd8a22bf08cb02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define({ | |
$plugins: [ | |
{ module: "wire/dom" }, | |
{ module: "wire/on" } | |
], | |
model: { module: "app/model" }, | |
getMenuOptions: { module: "app/get-menu-options" }, | |
mealSelect: { $ref: "dom!meal-select" }, | |
menuSelect: { $ref: "dom!menu-select" }, | |
getSelectedValue: { module: "app/get-selected-value" }, | |
rivets: { | |
module: "rivets", | |
ready: { | |
bind: [ | |
{ $ref: "menuSelect" }, | |
{ $ref: "model" } | |
] | |
}, | |
on: { | |
mealSelect: { "change:select": "getSelectedValue | getMenuOptions | model.update" } | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment