{"size": 684, "ext": "js", "max_stars_repo_path": "src/ng-table-sorter-row.decorator.js", "max_stars_repo_name": "takumiao/ng-table-extend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ng-table-sorter-row.decorator.js", "max_issues_repo_name": "takumiao/ng-table-extend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/ng-table-sorter-row.decorator.js", "max_forks_repo_name": "takumiao/ng-table-extend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 40.2352941176, "max_line_length": 116, "alphanum_fraction": 0.6915204678}
var decorator = function($provide) {
	$provide.decorator('ngTableSorterRowDirective', ['$delegate', 'NgTableHelper', function($delegate, NgTableHelper){
  	var directive = $delegate[0];
  	directive.templateUrl = function(elem) {
  		// fixed-header will invoked again
  		var tableElem = angular.element(NgTableHelper.parentNgTable(elem[0]));
  		var mergeColumns = tableElem.hasClass('table-merge-columns');
      console.log('table', mergeColumns, tableElem);
  		var tmpl = mergeColumns ? 'ng-table/sorterMergedRow.html' : 'ng-table/sorterRow.html'
  		return tmpl;
  	}
  	return $delegate;
  }]);
};

decorator.$inject = ['$provide'];
module.exports = decorator;