-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carets - Maria - ada-trader #38
base: master
Are you sure you want to change the base?
Conversation
…uote list view, added trades template to quote initialize, trades list is displaying in trade history panel
Ada TraderWhat We're Looking For
|
}); | ||
|
||
const orderListView = new OrderListView({ | ||
model: orders, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest passing quotes
in to the OrderListView
and then the view can listen for changes in quotes and check to see if it's time to execute an order.
const orderListView = new OrderListView({ | ||
model: orders, | ||
template: _.template($('#order-template').html()), | ||
el: 'main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note that both views represent the SAME element in the DOM, this means it's possible they could interfere with each other.
Instead I would suggest making the QuoteListView
's el
element be #quotes-container
and the OrderListView
's el
be #order-workspace
.
Ada Trader
Congratulations! You're submitting your assignment!
Comprehension Questions