We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebfdede + 724883f commit 0303942Copy full SHA for 0303942
src/js/core/factories/GridRenderContainer.js
@@ -174,10 +174,10 @@ angular.module('ui.grid')
174
* @description Removes an adjuster, should be used when your element is destroyed
175
* @param {function} func the adjuster function we want to remove
176
*/
177
- GridRenderContainer.prototype.removeViewportAdjuster = function registerViewportAdjuster(func) {
+ GridRenderContainer.prototype.removeViewportAdjuster = function removeViewportAdjuster(func) {
178
var idx = this.viewportAdjusters.indexOf(func);
179
180
- if (typeof(idx) !== 'undefined' && idx !== undefined) {
+ if (idx > -1) {
181
this.viewportAdjusters.splice(idx, 1);
182
}
183
};
0 commit comments