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

Remove "globals" and replace them with the ability for IDs to be strings. #34

Closed
doughsay opened this issue Jun 21, 2013 · 0 comments
Closed

Comments

@doughsay
Copy link
Owner

It's just silly to only allow integer object IDs, its an arbitrary restriction. A better way of doing it could be this:

  • when creating new objects, do or do not specify an id.
  • the id can be a string or a number.
  • if specified and available, that will be the id used.
  • if not specified, use the auto-incrementing counter to get the next available numeric id.

Then we can get objects by id like this:

root = $ '#root'
someThing = $ '#123'

By using '#' like jQuery to specify ID lookups, we allow for future expansion of the query operator.

Would address #8.

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

No branches or pull requests

1 participant