3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Set popup behavior weight to -100.

...so that behaviors that use instance.popup.on()
(including asset_type_layers) don't need to worry
about setting their weight heavier.
This commit is contained in:
Michael Stenta 2021-09-03 15:19:03 -04:00
parent fcf32771bd
commit 8f9123b975
2 changed files with 5 additions and 5 deletions

View file

@ -47,6 +47,9 @@
return content;
});
},
weight: 100,
// Make sure this runs early so other behaviors can dispatch popup events
// with instance.popup.on().
weight: -100,
};
}());

View file

@ -104,9 +104,6 @@
});
}
});
},
// Make sure this runs after farmOS.map.behaviors.popup.
weight: 101,
}
};
}());