How to fix this.action.disposalAction is not a function

I get this error message all the time in my Atom:

Uncaught TypeError: this.action.disposalAction is not a function
The error was thrown from the autoclose package.

Any help on fixing this issue will be appreciated.

Thanks