Permalink
Browse files

· Dropped "unsafeWindow." from "console.log" since GM now exposes tha…

…t object directly.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Greasemonkey.tmbundle@7248 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 0634433 commit 5575b93a472b9be48f21f52f9cb1cac6af4c1124 @henrik henrik committed May 13, 2007
Showing with 4 additions and 4 deletions.
  1. +2 −2 Snippets/unsafeWindow_console_log (Firebug).tmSnippet
  2. +2 −2 Support/help.markdown
View
4 Snippets/unsafeWindow_console_log (Firebug).tmSnippet
@@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>unsafeWindow.console.log("${1:Debug: %o}", ${2:object});</string>
+ <string>console.log("${1:Debug: %o}", ${2:object});</string>
<key>name</key>
- <string>unsafeWindow.console.log (Firebug)</string>
+ <string>console.log</string>
<key>scope</key>
<string>source.js.greasemonkey</string>
<key>tabTrigger</key>
View
4 Support/help.markdown
@@ -46,9 +46,9 @@ Strictly speaking a command, but it fits with the snippets.
`log` inserts `GM_log("info")` with `"info"` pre-selected. The next tab stop selects just `ìnfo`. Start typing directly to log a variable, or tab once and then type, to input a string.
-## unsafeWindow.console.log (clog&#x21E5;)
+## console.log (clog&#x21E5;)
-Inserts [Firebug](http://www.getfirebug.com/)'s `unsafeWindow.console.log("Debug: %o", object)` with the string contents pre-selected. The next tab stop selects the object.
+Inserts `console.log("Debug: %o", object)` (see [Firebug console documentation](http://www.getfirebug.com/console.html)) with the string contents pre-selected. The next tab stop selects the object.
## GM&#95;setValue and GM&#95;getValue (set&#x21E5; and get&#x21E5;)

0 comments on commit 5575b93

Please sign in to comment.