Skip to content

Commit

Permalink
Flexslider callbacks expression still receive a $slider object, but…
Browse files Browse the repository at this point in the history
… it is no longer the jQuery slider element. It now is a plain object containing a single key `element` with the previous jQuery element in it.

Fix thenikso#28 and thenikso#34
  • Loading branch information
thenikso committed Oct 27, 2014
1 parent 7adafd3 commit e791f10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion angular-flexslider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ angular.module('angular-flexslider', [])
if attrKey in ['start', 'before', 'after', 'end', 'added', 'removed']
options[attrKey] = do (attrVal) ->
f = $parse(attrVal)
(slider) -> $scope.$apply -> f($scope, { '$slider': slider })
(slider) -> $scope.$apply -> f($scope, { '$slider': { element: slider } })
continue
options[attrKey] = attrVal

Expand Down
18 changes: 6 additions & 12 deletions angular-flexslider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e791f10

Please sign in to comment.