On 9 May 2012 11:14, spirit <[email protected]> wrote: > Hi, I have a question. In GM builtin function like GM_getValue, > GM_setValue etc. have use uppercase letters on begin (GM). Like we > know, in JavaScript good custom is to use a capital letter at the > start of the constructors function. >
Its a legacy naming scheme, If greasemonkey where invented today, It probably would use something like greasemonkey.store.setValue() or gm.setValue(), like you have console.log() for firebug. Javascript is not Java, anyway, the customs are hilariously fragmented. GM_getValue may look like a constructor to a Java programer, but to me, that I have a C background, looks like a ugly macro :-/ -- -- ℱin del ℳensaje. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
