Patching a conflict with Foundation JS

This commit is contained in:
Will Marshall
2014-05-08 15:14:09 +10:00
parent 4e2326eaa2
commit 457c9be0f3

View File

@@ -1,6 +1,7 @@
Darkswarm.directive "ofnScrollTo", ($location, $anchorScroll)->
restrict: 'A'
link: (scope, element, attrs)->
element.bind 'click', ->
element.bind 'click', (ev)->
ev.stopPropagation()
$location.hash attrs.ofnScrollTo
$anchorScroll()