Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Apr 28, 2012
2 parents abc1350 + 9392594 commit 41c8d37
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions jquery_pivot.js
Expand Up @@ -16,7 +16,7 @@ var methods = {
methods.process(options);
},
process : function(options){
if (callbacks && callbacks.beforePopulate) {
if (callbacks.beforePopulate) {
callbacks.beforePopulate();
};

Expand Down Expand Up @@ -44,7 +44,7 @@ var methods = {

methods.update_results();

if (callbacks && callbacks.afterPopulate) {
if (callbacks.afterPopulate) {
callbacks.afterPopulate();
};
},
Expand Down Expand Up @@ -82,6 +82,11 @@ var methods = {
if (options.columnLabels === undefined) options.columnLabels = [];
if (options.summaries === undefined) options.summaries = [];
if (options.filters === undefined) options.filters = {};
if (options.callbacks === undefined) options.callbacks = {};

if (options.callbacks.beforeReprocessDisplay) {
options.callbacks.afterReprocessDisplay();
}

pivot.filters().set(options.filters);
pivot.display().summaries().set(options.summaries);
Expand All @@ -90,6 +95,10 @@ var methods = {

methods.populate_containers();
methods.update_results();

if (options.callbacks.afterReprocessDisplay) {
options.callbacks.afterReprocessDisplay();
}
},
build_containers : function(){

Expand Down

0 comments on commit 41c8d37

Please sign in to comment.