jacomyal / domino.js

[deprecated] A JavaScript cascading controller for fast interactive Web interfaces prototyping.
https://jacomyal.github.io/domino.js
MIT License
54 stars 7 forks source link

[#6dcdbd] Bug with merged requests and "success" callbacks #25

Closed jacomyal closed 11 years ago

jacomyal commented 11 years ago

Say we have d an instance of domino, with serv1 and serv2 two services. The following code works well ("Yay!" show up in the console):

d.request('serv1', {
  success: function() {
    console.log('Yay!');
  }
});

But if I call two services in the same call, I have no log, the success callback is never called:

d.request(['serv1', 'serv2'], {
  success: function() {
    console.log('Yay!');
  }
});