[Pkg-mozext-commits] [itsalltext] 47/459: switched const and var, added note about jslint not support const

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 644ffdb3e1d8fcbaa4c64f378acb289ceb660919
Author: Christian Höltje <docwhat at gerf.org>
Date:   Wed Jan 3 21:32:09 2007 -0500

    switched const and var, added note about jslint not support const
---
 chrome/content/preferences.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/preferences.js b/chrome/content/preferences.js
index 8ec47bf..2030bf4 100644
--- a/chrome/content/preferences.js
+++ b/chrome/content/preferences.js
@@ -9,7 +9,8 @@
 function pref_editor_select() {
   var tb = document.getElementById('editor');
   
-  const nsIFilePicker = Components.interfaces.nsIFilePicker;
+  // Note: If jslint could, we'd use const here
+  var nsIFilePicker = Components.interfaces.nsIFilePicker;
  
   var fp = Components.classes["@mozilla.org/filepicker;1"].
     createInstance(nsIFilePicker);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list