github alpinejs/alpine v1.9.4
on GitHub

Added

  • $dispatch magic function for dispatching new CustomEvents easily:

    <div x-data="{ foo: 'bar' }" x-on:custom-event="foo = $event.detail.newValue">
    <span x-text="foo"></span>
    
    
    <button x-on:click="$dispatch('custom-event', {newValue: 'baz'})">Turn 'bar' to 'baz'</button>
    </div>
    

    Fixed

    • Fix some bug that was happening with chrome extensions (#91)
    • Set value of undefined nested object keys (#93)
    • Fix empty for loop bug (#104)
6 months ago