babylon-runtime / _r

Code Less, Babylon More
https://babylon-runtime.github.io/
Apache License 2.0
8 stars 1 forks source link

_r.patch sequence #18

Closed fabsharp closed 4 years ago

fabsharp commented 4 years ago
_r.patch([{
   "exec" : function() { console.log("1");
}, {
  "exec" : function() { console.log("2");
}, {
  "exec" : function() { console.log("3");
}).then(function() {
    console.log("4");
});
console.log("5");

=> 1, 5, 2, 3, 4

Should be => 1, 2, 3, 5, 4