Commits

Mathias Panzenböck committed 82816ae

var -> const

Comments (0)

Files changed (1)

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))];
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.