Commits

Mathias Panzenböck  committed 82816ae

var -> const

  • Participants
  • Parent commits 653d640

Comments (0)

Files changed (1)

File stickyNote.user.js

 //   Mathias Panzenböck (panzi)
 //   Mihai Ghete (Viper)
 
-var BASE_Z_INDEX = 100000;
-var STYLE_VERSION = 1;
-var VERSION = 100;
+const BASE_Z_INDEX = 100000;
+const STYLE_VERSION = 1;
+const VERSION       = 100;
 
-var STATE_DISPLAY = 0;
-var STATE_EDIT    = 1;
-var STATE_MOVE    = 2;
-var STATE_RESIZE  = 3;
-var MIN_SIZE      = 15;
+const STATE_DISPLAY = 0;
+const STATE_EDIT    = 1;
+const STATE_MOVE    = 2;
+const STATE_RESIZE  = 3;
+const MIN_SIZE      = 15;
 
 function StickyNote(x,y,width,height,text) {
 	var stickyNote = this;
 }
 
 var stickyNotes = [];
-var siteId = location.href.split('#')[0];
+const siteId = location.href.split('#')[0];
 
 function listSites() {
 	return [name for each (name in GM_listValues()) if (!/^stickynote:/.test(name))];