darul75 / angular-awesome-slider

:arrows_clockwise: Angular slider control directive
http://darul75.github.io/angular-awesome-slider/
MIT License
144 stars 63 forks source link

no method 'offset' #42

Closed miculprogramator closed 9 years ago

miculprogramator commented 9 years ago

what dependences has ng-slider ? because i receive TypeError: Object [object Object] has no method 'offset'

darul75 commented 9 years ago

hi, no dependency except angular, can you send me stack strace from your console, I have just check what could be going on but can reproduce right now. thanks

miculprogramator commented 9 years ago

nop, do not work, the issue is here "var f=d.offset(this.domNode)".

darul75 commented 9 years ago

Fiddler is on readme first page if you can reproduce it. I will check on my side too.

http://jsfiddle.net/darul75/g9e9n8xc/

But currently I do not see what is going on so if you can put example of your code and directive options, thanks

miculprogramator commented 9 years ago

i thing this is the difference AngularJS v1.3.1

darul75 commented 9 years ago

"d" variable (name after minification) in your code is just an utils function, maybe injection failed but it is weird. I will look more in depth with 1.3

darul75 commented 9 years ago

tested with 1.3 I have not seen any differences, pls use fiddle or send me code and options I can reproduce

mariantatarau commented 9 years ago

something is wrong in min, utils is not injected, i solved the problem in min file, is not a solution but i don't have time to test again

darul75 commented 9 years ago

renamed 'utils' factory to 'sliderUtils'