Using ngf-resize=someFunction
fails with TypeError: Cannot read property 'then' of undefined
#1691
Labels
ngf-resize=someFunction
fails with TypeError: Cannot read property 'then' of undefined
#1691
For instance:
ngf-resize=resizeOptions
withThe culprit is this line which chain a
then
on the result ofresize
but you can see here that this function does not return nothing whenngfResize
is aFunction
. Adding a simple return on this line seems to fix the problem.Anyway thanks for your work, very useful library!
The text was updated successfully, but these errors were encountered: