malinajs 0.6.51 → 0.6.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/malina.js +1 -1
  2. package/package.json +1 -1
  3. package/runtime.js +2 -2
package/malina.js CHANGED
@@ -5891,7 +5891,7 @@
5891
5891
  return {event, fn};
5892
5892
  }
5893
5893
 
5894
- const version = '0.6.51';
5894
+ const version = '0.6.52';
5895
5895
 
5896
5896
 
5897
5897
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.6.51",
3
+ "version": "0.6.52",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",
package/runtime.js CHANGED
@@ -295,12 +295,12 @@ function $tick(fn, uniq) {
295
295
  _tick_list.push(fn);
296
296
  if(_tick_planned.$tick) return;
297
297
  _tick_planned.$tick = true;
298
- setTimeout(() => {
298
+ Promise.resolve().then(() => {
299
299
  _tick_planned = {};
300
300
  let list = _tick_list;
301
301
  _tick_list = [];
302
302
  list.map(safeCall);
303
- }, 0);
303
+ });
304
304
  }
305
305
 
306
306
  function $makeEmitter(option) {