Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If we are jQuery, let's be jQuery... #1

Open
gregglind opened this issue Dec 29, 2011 · 0 comments
Open

If we are jQuery, let's be jQuery... #1

gregglind opened this issue Dec 29, 2011 · 0 comments

Comments

@gregglind
Copy link
Owner

in that we have:

  • search / selectors
  • chainable methods (parent, children)
  • modification (text, content, etc)

For not, this is YAGNI, but a possible way forward is:

  • instead of the things themselves, store the paths to the things, in the object. The means parent() operates like this:

    def _parent(selector,path):
    # straw implementation
    return path[:-1]

This requires some thinking about how what is analogous to various jQuery methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant