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

Provide a way to get the underlying Firebase reference #10

Closed
balinterdi opened this issue Nov 15, 2013 · 3 comments
Closed

Provide a way to get the underlying Firebase reference #10

balinterdi opened this issue Nov 15, 2013 · 3 comments

Comments

@balinterdi
Copy link

In a small application I've built to try out emberFire I set up a callback thusly:

  this.ref.child('votedOn').on('value', function(snapshot) {
  (...)
  });

That works. However, when I change this to

  this.get('votedOn').on('value', function(snapshot) {
  (...)
  });

It throws an error: TypeError: Cannot call method 'on' of undefined

In theory, missing property lookups should just be proxied to the underlying Firebase reference but it seems like in this case it is not.

ps. The code is here

@anantn
Copy link
Contributor

anantn commented Jan 8, 2014

.get('foo') should return the value of the reference, rather than the reference itself. Seems like we should add a way to get at the underlying reference as well.

@anantn anantn closed this as completed Jan 8, 2014
@anantn
Copy link
Contributor

anantn commented Jan 8, 2014

Didn't mean to close, I'll rename the issue.

@anantn anantn reopened this Jan 8, 2014
@sararob
Copy link
Contributor

sararob commented Sep 18, 2014

@balinterdi I'm closing this issue since it applies to the previous version of EmberFire. We'll be working on going through issues over the next couple of weeks. Feel free to let me know if you have any feedback / suggestions on how we can improve the latest version.

@sararob sararob closed this as completed Sep 18, 2014
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

3 participants