سؤال

I understand how to bind an action in a Backbone View to an event trigger but, how can you fire an action watching the condition that two precise envets have been triggered?

هل كانت مفيدة؟

المحلول

For that you can use jquery functionality like:

$.when(func1, func2).then(func3);

It acts like deffered and promise here.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top