Closed deoxen0n2 closed 7 years ago
Seems like we might need to bind task
to all of those methods actually so they have the proper scope. I'm surprised the tests pass as is though... I don't have time to look into this, but maybe David (who wrote the initial code) does. Otherwise, if you can find a failing test and put together a PR which fixes it, that would be awesome!
@deoxen0n2 Still interested in a PR?!
@davideast Sorry I'm very busy lately. If no one will do the PR I will try to do it next week.
please, fix the build process
Hi
Any update on when this will be released?
Regards
??? Really need this!
Version info
Angular: 1.4.3
Firebase: 3.7.5
AngularFire: 2.3.0
Browser: Chrome 56.0.2924.87
Steps to reproduce
Expected behavior
Log the download URL successfully.
Actual behavior
An error occurred on Firebase SDK (not on the AngularFire):
TypeError: Cannot read property 'then' of undefined
.Hi, I have an unexpected behavior as specified above. But if I use
imageStorage.putString(...)
that is the method not wrapped by AngularFire, the error disappear. I also tried changing the following lines on AngularFire (https://github.com/firebase/angularfire/blob/master/src/storage/FirebaseStorage.js#L40):From
to
Which add
.bind(task
) to thethen
andcatch
methods and now it works as expected. Not sure if this is a correct solution.