Sha256: ede090859a7aea26807189d27f8310c6835f807e8c2e1030950c48997818849c
Contents?: true
Size: 826 Bytes
Versions: 2
Compression:
Stored size: 826 Bytes
Contents
#1. If we're in home, we should just raise back_clicked #2. If we're in home, and push about, then we should pop #3. If we're in about (start), then we should raise back_clicked controller :my_controller do macro :nav do on "back_clicked", %{ if (push_count === 0) { raised_back = true; } else { did_pop = true; } } end choose_action do on_entry %{ if (context.starts_in_about) { Goto("about"); } else { Goto("home"); } } end action :home do on "about_clicked", %{ Push("about"); } nav end #Don't use macro here to test inside of a function action :about do on "back_clicked", %{ if (push_count === 0) { raised_back = true; } else { did_pop = true; } } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.105 | spec/kern/assets/push_count.rb |
flok-0.0.103 | spec/kern/assets/push_count.rb |