Phil 4.3.15

8:00 – 5:00 SR

  • John P. is having IE 11 problems with FR. Put in a ticket to get upgraded
  • Last chance at getting super.myMethod() to work…
    • Soooooooooo close. I have it working for controllers. I wound up using the eval() function to create a javascript function pointer to the method on this.prototype. I think that’s not horrible. It blows up when I try to use it on a service, which is nearly identical. The ‘this’ seems to be getting lost, so the prototype object that I’m pointing to isn’t there anymore. For kicks, I tried getting the string values of the prototype function and used eval() to attach them as function pointers to ‘this’, but that blows up as well.
    • Falling back to setting the function pointers explicitly in the derived class constructor.
    • And that seems to work…
    • Adding a setFunctionPointer method in the base class that takes the name of the function and attaches it to ‘this’
    • Works! Whoops, not everywhere. Let’s see if we pass in the ‘this’ from the derived class.
    • Works! Adding it to all the derived classes.
    • And that works too. So weird. Ok, because I like pain, I’m going to try to move the call to setFunctionPointer back to the base class constructor.
    • Sonofabitch. That works. super.myMethod() works. Controllers, Directives, Services and Factories work. You can explore it here.