|
56 | 56 | * @description factory to return dom specific instances of a grid
|
57 | 57 | *
|
58 | 58 | */
|
59 |
| - module.service('gridClassFactory', ['gridUtil','$q','$templateCache','uiGridConstants','$log', |
60 |
| - function (gridUtil,$q,$templateCache,uiGridConstants,$log) { |
| 59 | + module.service('gridClassFactory', ['gridUtil', '$q', '$templateCache', 'uiGridConstants', '$log', |
| 60 | + function (gridUtil, $q, $templateCache, uiGridConstants, $log) { |
61 | 61 |
|
62 | 62 | var service = {
|
63 | 63 | /**
|
|
193 | 193 | }
|
194 | 194 | var col = self.getColumn(colDef.field);
|
195 | 195 |
|
196 |
| - //if (!col) { |
| 196 | + if (!col) { |
197 | 197 | col = new GridColumn(colDef, index);
|
198 | 198 | self.columns.push(col);
|
199 |
| - //} |
| 199 | + } |
200 | 200 |
|
201 | 201 | self.columnBuilders.forEach(function (builder) {
|
202 | 202 | builderPromises.push(builder.call(self, colDef, col, self.options));
|
|
412 | 412 | * @param {ColDef} colDef column definition
|
413 | 413 | * @returns {string} resulting name that can be evaluated on scope
|
414 | 414 | */
|
415 |
| - GridRow.prototype.getQualifiedColField = function(colDef){ |
| 415 | + GridRow.prototype.getQualifiedColField = function(colDef) { |
416 | 416 | return 'row.entity.' + colDef.field;
|
417 | 417 | };
|
418 | 418 |
|
|
452 | 452 | return service;
|
453 | 453 | }]);
|
454 | 454 |
|
455 |
| - module.controller('uiGridController',['$scope', '$element', '$attrs','$log','gridUtil','$q','uiGridConstants', |
456 |
| - '$templateCache','gridClassFactory', |
| 455 | + module.controller('uiGridController', ['$scope', '$element', '$attrs', '$log', 'gridUtil', '$q', 'uiGridConstants', '$templateCache', 'gridClassFactory', |
457 | 456 | function ($scope, $elm, $attrs, $log, gridUtil, $q, uiGridConstants, $templateCache, gridClassFactory) {
|
458 | 457 | $log.debug('ui-grid controller');
|
459 | 458 |
|
|
538 | 537 | };
|
539 | 538 |
|
540 | 539 | //todo: throttle this event?
|
541 |
| - self.fireScrollEvent = function(){ |
542 |
| - $scope.$broadcast(uiGridConstants.events.GRID_SCROLL,'vertical'); |
| 540 | + self.fireScrollEvent = function() { |
| 541 | + $scope.$broadcast(uiGridConstants.events.GRID_SCROLL, 'vertical'); |
543 | 542 | };
|
544 | 543 |
|
545 | 544 | }]);
|
@@ -610,12 +609,11 @@ module.directive('uiGrid',
|
610 | 609 | ]);
|
611 | 610 |
|
612 | 611 |
|
613 |
| - module.directive('uiGridCell', ['$compile','uiGridConstants','$log', function ($compile,uiGridConstants,$log) { |
| 612 | + module.directive('uiGridCell', ['$compile', 'uiGridConstants', '$log', function ($compile, uiGridConstants, $log) { |
614 | 613 | var ngCell = {
|
615 | 614 | priority: 0,
|
616 | 615 | scope: false,
|
617 | 616 | compile: function() {
|
618 |
| - |
619 | 617 | return {
|
620 | 618 | pre: function($scope, $elm) {
|
621 | 619 | // $log.debug('uiGridCell pre-link');
|
|
0 commit comments