@@ -46,7 +46,7 @@ function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
46
46
val = 0 ;
47
47
48
48
var sides = [ 'Top' , 'Right' , 'Bottom' , 'Left' ] ;
49
-
49
+
50
50
for ( ; i < 4 ; i += 2 ) {
51
51
var side = sides [ i ] ;
52
52
// dump('side', side);
@@ -166,7 +166,7 @@ var uidPrefix = 'uiGrid-';
166
166
/**
167
167
* @ngdoc service
168
168
* @name ui.grid.service:GridUtil
169
- *
169
+ *
170
170
* @description Grid utility functions
171
171
*/
172
172
module . service ( 'gridUtil' , [ '$log' , '$window' , '$document' , '$http' , '$templateCache' , '$timeout' , '$interval' , '$injector' , '$q' , '$interpolate' , 'uiGridConstants' ,
@@ -292,7 +292,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
292
292
if ( angular . isUndefined ( excludeProperties ) ) { excludeProperties = [ ] ; }
293
293
294
294
var item = data [ 0 ] ;
295
-
295
+
296
296
angular . forEach ( item , function ( prop , propName ) {
297
297
if ( excludeProperties . indexOf ( propName ) === - 1 ) {
298
298
columnDefs . push ( {
@@ -383,7 +383,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
383
383
. then ( s . postProcessTemplate ) ;
384
384
} ,
385
385
386
- //
386
+ //
387
387
postProcessTemplate : function ( template ) {
388
388
var startSym = $interpolate . startSymbol ( ) ,
389
389
endSym = $interpolate . endSymbol ( ) ;
@@ -440,7 +440,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
440
440
* @returns {number } Element width in pixels, accounting for any borders, etc.
441
441
*/
442
442
elementWidth : function ( elem ) {
443
-
443
+
444
444
} ,
445
445
446
446
/**
@@ -454,7 +454,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
454
454
* @returns {number } Element height in pixels, accounting for any borders, etc.
455
455
*/
456
456
elementHeight : function ( elem ) {
457
-
457
+
458
458
} ,
459
459
460
460
// Thanks to http://stackoverflow.com/a/13382873/888165
@@ -473,7 +473,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
473
473
// add innerdiv
474
474
var inner = document . createElement ( "div" ) ;
475
475
inner . style . width = "100%" ;
476
- outer . appendChild ( inner ) ;
476
+ outer . appendChild ( inner ) ;
477
477
478
478
var widthWithScroll = inner . offsetWidth ;
479
479
@@ -541,7 +541,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
541
541
// var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'];
542
542
// var toBind = 'onwheel' in document || document.documentMode >= 9 ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'];
543
543
var lowestDelta , lowestDeltaXY ;
544
-
544
+
545
545
var orgEvent = event || window . event ,
546
546
args = [ ] . slice . call ( arguments , 1 ) ,
547
547
delta = 0 ,
@@ -727,7 +727,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
727
727
resetUids : function ( ) {
728
728
uid = [ '0' , '0' , '0' ] ;
729
729
} ,
730
-
730
+
731
731
/**
732
732
* @ngdoc method
733
733
* @methodOf ui.grid.service:GridUtil
@@ -736,7 +736,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
736
736
* treatment within ui-grid if we so desired. At present we only log
737
737
* error messages if uiGridConstants.LOG_ERROR_MESSAGES is set to true
738
738
* @param {string } logMessage message to be logged to the console
739
- *
739
+ *
740
740
*/
741
741
logError : function ( logMessage ) {
742
742
if ( uiGridConstants . LOG_ERROR_MESSAGES ) {
@@ -752,7 +752,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
752
752
* treatment within ui-grid if we so desired. At present we only log
753
753
* warning messages if uiGridConstants.LOG_WARN_MESSAGES is set to true
754
754
* @param {string } logMessage message to be logged to the console
755
- *
755
+ *
756
756
*/
757
757
logWarn : function ( logMessage ) {
758
758
if ( uiGridConstants . LOG_WARN_MESSAGES ) {
@@ -767,7 +767,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
767
767
* @description wraps the $log method, allowing us to choose different
768
768
* treatment within ui-grid if we so desired. At present we only log
769
769
* debug messages if uiGridConstants.LOG_DEBUG_MESSAGES is set to true
770
- *
770
+ *
771
771
*/
772
772
logDebug : function ( ) {
773
773
if ( uiGridConstants . LOG_DEBUG_MESSAGES ) {
@@ -903,7 +903,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
903
903
}
904
904
}
905
905
906
- definer . remove ( ) ;
906
+ angular . element ( definer ) . remove ( ) ;
907
907
rtlScrollType . type = type ;
908
908
909
909
return type ;
@@ -1080,11 +1080,11 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
1080
1080
* trailing (bool) - whether to trigger after throttle time ends if called multiple times
1081
1081
* Updated to use $interval rather than $timeout, as protractor (e2e tests) is able to work with $interval,
1082
1082
* but not with $timeout
1083
- *
1083
+ *
1084
1084
* Note that when using throttle, you need to use throttle to create a new function upfront, then use the function
1085
1085
* return from that call each time you need to call throttle. If you call throttle itself repeatedly, the lastCall
1086
1086
* variable will get overwritten and the throttling won't work
1087
- *
1087
+ *
1088
1088
* @example
1089
1089
* <pre>
1090
1090
* var throttledFunc = gridUtil.throttle(function(){console.log('throttled');}, 500, {trailing: true});
@@ -1258,7 +1258,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
1258
1258
// offsetX = event.clientX - boundingRect.left;
1259
1259
// offsetY = event.clientY - boundingRect.top;
1260
1260
// }
1261
-
1261
+
1262
1262
// event.deltaX = deltaX;
1263
1263
// event.deltaY = deltaY;
1264
1264
// event.deltaFactor = lowestDelta;
0 commit comments