Skip to content

Commit

Permalink
fix(ui-grid-util.js): Replace angular.uppercase with toUpperCase.
Browse files Browse the repository at this point in the history
fix #6729
  • Loading branch information
Portugal, Marcelo authored and mportuga committed May 16, 2018
1 parent 291b0d3 commit 82033e0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/js/core/services/ui-grid-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,8 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC


['width', 'height'].forEach(function (name) {
var capsName = angular.uppercase(name.charAt(0)) + name.substr(1);
var capsName = name.charAt(0).toUpperCase() + name.substr(1);

s['element' + capsName] = function (elem, extra) {
var e = elem;
if (e && typeof(e.length) !== 'undefined' && e.length) {
Expand All @@ -910,12 +911,11 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
if (e && e !== null) {
var styles = getStyles(e);
return e.offsetWidth === 0 && rdisplayswap.test(styles.display) ?
s.swap(e, cssShow, function() {
return getWidthOrHeight(e, name, extra );
}) :
getWidthOrHeight( e, name, extra );
}
else {
s.swap(e, cssShow, function() {
return getWidthOrHeight(e, name, extra );
}) :
getWidthOrHeight( e, name, extra );
} else {
return null;
}
};
Expand Down

0 comments on commit 82033e0

Please sign in to comment.