This is a subtle issue. What happens is that JQuery.Of(...) is called immediately, when the element hasn't been inserted in the DOM yet, so it returns an empty JQuery object. Whereas in the fun () -> ... case, JQuery.Of is only called when the fun () is called, and your element is in the DOM.

By on 2/2/2016 9:04 AM ()

Hi Loic, thanks nice catch that's entirely my fault.

By on 2/2/2016 10:48 AM ()
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