diff --git a/lib/minimap-element.js b/lib/minimap-element.js index 2744b400..37e9c85b 100644 --- a/lib/minimap-element.js +++ b/lib/minimap-element.js @@ -862,18 +862,18 @@ class MinimapElement { // ## ## ## ## ## ## ## ### ## // ######## ######## ######## ## ## ######## ## ## ## -let elementClass = registerOrUpdateElement('atom-text-editor-minimap', MinimapElement.prototype) +let MinimapHTMLElement = registerOrUpdateElement('atom-text-editor-minimap', MinimapElement.prototype) // Public: The method that registers the {MinimapElement} factory in the // `atom.views` registry with the passed-in model. // // model - The model class to registers the factory with. -elementClass.registerViewProvider = function () { +MinimapHTMLElement.registerViewProvider = function () { atom.views.addViewProvider(require('./minimap'), function (model) { - var element = new elementClass() + var element = new MinimapHTMLElement() element.setModel(model) return element }) } -export default elementClass +export default MinimapHTMLElement