Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

a minor fix to the example in window-utils docs #139

Merged
merged 1 commit into from

2 participants

@nickolay

change window.document.URL to window.location in the examples, since the former returns 'undefined' in chrome windows these examples are about.

@nickolay nickolay change window.document.URL to window.location in the examples, since …
…the former doesn't returns 'undefined' in chrome windows these examples are about.
00c27dc
@mykmelez mykmelez referenced this pull request from a commit
@mykmelez mykmelez Merged pull request #139 from nickolay/master.
a minor fix to the example in window-utils docs
e3088a1
@mykmelez mykmelez merged commit e3088a1 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2011
  1. @nickolay

    change window.document.URL to window.location in the examples, since …

    nickolay authored
    …the former doesn't returns 'undefined' in chrome windows these examples are about.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/api-utils/docs/window-utils.md
View
6 packages/api-utils/docs/window-utils.md
@@ -37,11 +37,11 @@ uninstalled, whichever comes first.)
var delegate = {
onTrack: function (window) {
- console.log("Tracking a window: " + window.document.URL);
+ console.log("Tracking a window: " + window.location);
// Modify the window!
},
onUntrack: function (window) {
- console.log("Untracking a window: " + window.document.URL);
+ console.log("Untracking a window: " + window.location);
// Undo your modifications!
}
};
@@ -65,7 +65,7 @@ uninstalled, whichever comes first.)
var winUtils = require("window-utils");
for (window in winUtils.windowIterator())
- console.log("An open window! " + window.document.URL);
+ console.log("An open window! " + window.location);
</api>
Something went wrong with that request. Please try again.