Changeset 749

Show
Ignore:
Timestamp:
06/30/08 21:08:44 (5 months ago)
Author:
oyasu..@gmail.com
Message:

Renamed new API GM_enumerateValues to GM_listValues as per GM-dev consensus. (Also some styleguide nit.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/chrome/chromeFiles/content/miscapis.js

    r745 r749  
    6969} 
    7070 
    71 GM_ScriptStorage.prototype.enumerateValues = function() { 
    72   return this.prefMan.enumerateValues(); 
     71GM_ScriptStorage.prototype.listValues = function() { 
     72  return this.prefMan.listValues(); 
    7373} 
    7474 
  • trunk/src/chrome/chromeFiles/content/prefmanager.js

    r745 r749  
    3131 
    3232  /** 
    33         * enumerate preferences 
    34         */ 
    35        this.enumerateValues = function() { 
    36                return pref.getChildList("",{}); 
    37        
     33  * enumerate preferences 
     34  */ 
     35  this.listValues = function() { 
     36    return pref.getChildList("", {}); 
     37 
    3838 
    3939  /** 
  • trunk/src/components/greasemonkey.js

    r748 r749  
    261261      sandbox.GM_getValue = GM_hitch(storage, "getValue"); 
    262262      sandbox.GM_deleteValue = GM_hitch(storage, "deleteValue"); 
    263       sandbox.GM_enumerateValues = GM_hitch(storage, "enumerateValues"); 
     263      sandbox.GM_listValues = GM_hitch(storage, "listValues"); 
    264264      sandbox.GM_getResourceURL = GM_hitch(resources, "getResourceURL"); 
    265265      sandbox.GM_getResourceText = GM_hitch(resources, "getResourceText");