move window.__config to an Angular constant; refactor AngularViewArray -> ViewArray + ViewArrayFactory
This commit is contained in:
parent
615e233671
commit
eea2a18c3f
16 changed files with 316 additions and 231 deletions
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* Service which provides helper methods for constructing and managing tabular data.
|
||||
*/
|
||||
angular.module('quay').factory('TableService', ['AngularViewArray', function(AngularViewArray) {
|
||||
angular.module('quay').factory('TableService', ['ViewArrayFactory', function(ViewArrayFactory) {
|
||||
var tableService = {};
|
||||
|
||||
tableService.tablePredicateClass = function(name, predicate, reverse) {
|
||||
|
@ -31,7 +31,7 @@ angular.module('quay').factory('TableService', ['AngularViewArray', function(Ang
|
|||
};
|
||||
|
||||
tableService.buildOrderedItems = function(items, options, filterFields, numericFields, opt_extrafilter) {
|
||||
var orderedItems = AngularViewArray.create();
|
||||
var orderedItems = ViewArrayFactory.create();
|
||||
|
||||
items.forEach(function(item) {
|
||||
var filter = options.filter;
|
||||
|
|
Reference in a new issue