Closed olso closed 8 years ago
Well, I don't think this is a good way. When Trip.js got initialized, we'll do the check and make sure APIs/ or events are bound to the right component and this will only happened once.
One question, why you need to do that by the way ? Why not just use multiple instances of Trip.js ? The reason why Trip is made like a Class is to let you have the flexibilities to do complex interactions. With onTripChange
or some events, I think you can still make the same thing which you want.
@olso feel free to discuss more if you want. I'll close this issue first :) Thanks