Code Monkey home page Code Monkey logo

Comments (5)

danhunsaker avatar danhunsaker commented on August 20, 2024

That is odd. Trying to remember why I set it up that way to begin with, and failing. It's also interesting that this works with Angular 1.0.8, but not 1.2.15 (1.0.8 was the latest stable when I wrote the directive).

Have you tested the change you've presented here? If it works, go ahead and submit a PR with the change and I'll merge it in.

from angular-dynamic-forms.

zjr avatar zjr commented on August 20, 2024

Tested, indeed. PR in a moment.

from angular-dynamic-forms.

zjr avatar zjr commented on August 20, 2024

Not sure it's because of a difference between Angular versions, but whether or not jQuery is included. No idea what exactly is happening, but with jQuery included the result of $document in that particular spot is very different. Will still submit the PR, I suppose… still catches error when jQuery is included which I imagine to be a common occurrence.

from angular-dynamic-forms.

danhunsaker avatar danhunsaker commented on August 20, 2024

Completely forgot about this discussion when I commented on your PR just now. Sorry about changing my mind like that.

jQuery and jqLite implement certain things differently. I suspect the actual fix to this will be to grab the documentElement instead of the document object, and to stop there instead. So $document.documentElement instead of just $document. (I'd say angular.element(":root") if selectors were implemented in jqLite.)

from angular-dynamic-forms.

danhunsaker avatar danhunsaker commented on August 20, 2024

I've added such a check, so I'll close this issue. Feel free to reopen if I'm an idiot and did it wrong. 😁

from angular-dynamic-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.