Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// unsetCompasses.js

(function() {
  /*global adventurejs A*/ 
  "use strict";

	var p = adventurejs.Display.prototype;

	/**
	 * Reset exits in status bar and custom compass roses.
	 * @method adventurejs.Display#unsetCompasses
	 */
	p.unsetCompasses = function Display_unsetCompasses() 
  {
    this.compasses.forEach(function(element){
      element.querySelector('.ajs-compasspoints')?.setAttribute('class',`ajs-compasspoints`);
    })
	}
  
}());