Your Rescale does not seem to be a function. In your sample it just seem to be unit value. If you change it to the following, it should work:

1
2
3
4
5
6
    let Rescale() =
        JS.Alert("never called!")
        
    let DoubleClickHandler (event : Dom.Event) =
        JS.Alert("double click")
        Rescale()

Also in your second sample, by adding a string at the end of Rescale, you changed it to become a value of type string which explains why JS.Alert(Rescale) yields now it IS called.

By on 4/15/2016 2:11 AM ()

Wow. Embarrassing newbie mistake. But I'm happy that my code is working much better now. Thank you!

By on 4/15/2016 7:08 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper