Skip to content

Commit

Permalink
forgot triggerHandler() instead of trigger()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrayan committed Apr 30, 2016
1 parent ad2fab8 commit 4a5f654
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/angular-footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ angular
bindEventHandler(tableObj, scope, attrs);
scope.$watch(function() {return attrs.loadWhen; }, function(){
$timeout(function(){
element.trigger('footable_redraw');
element.triggerHandler('footable_redraw');
});
});
},1000);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-footable.min.js

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

2 changes: 1 addition & 1 deletion src/angular-footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ angular
bindEventHandler(tableObj, scope, attrs);
scope.$watch(function() {return attrs.loadWhen; }, function(){
$timeout(function(){
element.trigger('footable_redraw');
element.triggerHandler('footable_redraw');
});
});
},1000);
Expand Down

1 comment on commit 4a5f654

@iemam
Copy link

@iemam iemam commented on 4a5f654 May 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Could you please explain how this load-when attribute would work? I tried to set it to a boolean that in the controller would be true once the data is loaded from the service but that didnt work.

Thanks
Ibrahim

Please sign in to comment.