Patching a conflict with Foundation JS

This commit is contained in:
Will Marshall
2014-05-08 15:14:09 +10:00
parent 4ebc22f438
commit 6696b8e17b

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()