Skip to content

Commit

Permalink
Data-binding framework fix
Browse files Browse the repository at this point in the history
Footable does copy() on data sometimes before it got processed by
AngularJS, added tmp fix - $timeout
  • Loading branch information
alexrayan committed Feb 18, 2016
1 parent 79fed50 commit d5c3422
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-footable",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "https://github.com/ziscloud/angular-footable",
"authors": [
"Tony Wang <[email protected]>"
Expand Down
24 changes: 12 additions & 12 deletions dist/angular-footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ angular
var tableOpts = {
'event-filtering': null
};
$timeout(function(){
angular.extend(
tableOpts,
footable.options
);

angular.extend(
tableOpts,
footable.options
);
angular.extend(
tableOpts,
extractSpecOpts(tableOpts, attrs)
);

angular.extend(
tableOpts,
extractSpecOpts(tableOpts, attrs)
);

var tableObj = element.footable(tableOpts);

bindEventHandler(tableObj, scope, attrs);
var tableObj = element.footable(tableOpts);

bindEventHandler(tableObj, scope, attrs);
},1000);
scope.$watch(function() {return attrs.loadWhen; }, function(){
$timeout(function(){
element.trigger('footable_redraw');
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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-footable",
"version": "0.0.2",
"version": "0.0.3",
"description": "Angular derictive for FooTable",
"main": "dist/angular-footable.js",
"directories": {
Expand Down
24 changes: 12 additions & 12 deletions src/angular-footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ angular
var tableOpts = {
'event-filtering': null
};
$timeout(function(){
angular.extend(
tableOpts,
footable.options
);

angular.extend(
tableOpts,
footable.options
);
angular.extend(
tableOpts,
extractSpecOpts(tableOpts, attrs)
);

angular.extend(
tableOpts,
extractSpecOpts(tableOpts, attrs)
);

var tableObj = element.footable(tableOpts);

bindEventHandler(tableObj, scope, attrs);
var tableObj = element.footable(tableOpts);

bindEventHandler(tableObj, scope, attrs);
},1000);
scope.$watch(function() {return attrs.loadWhen; }, function(){
$timeout(function(){
element.trigger('footable_redraw');
Expand Down

0 comments on commit d5c3422

Please sign in to comment.