Skip to content

Commit

Permalink
Fix zurb#342 without expanding API
Browse files Browse the repository at this point in the history
  • Loading branch information
kiran committed Dec 19, 2014
1 parent 5ed270c commit ab71972
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions js/angular/components/iconic/iconic.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@
function zfIconic(iconic) {
var directive = {
restrict: 'A',
scope: {
dynSrc: '=?'
},
link: link
};

return directive;

function link(scope, element, attrs, controller) {
var ico = iconic.getAccess();
if(scope.dynSrc) {
attrs.$set('data-src', scope.dynSrc);
}
attrs.$set('data-src', attrs.src);
ico.inject(element[0]);
}
}
Expand Down

0 comments on commit ab71972

Please sign in to comment.