Skip to content

Commit 7924d3b

Browse files
committed
typo
referer corrected to refer
1 parent 2a52a95 commit 7924d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

topics/about_this.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test("'this' on unattached function", function () {
2323
// if the function is not called as an object property 'this' is the global context
2424
// (window in a browser). This is an example. Please do not do this in practise.
2525
window.__ = 'Peter';
26-
equal(alias(), "Hello, my name is Peter", "What does 'this' referer to when it is not part of an object?");
26+
equal(alias(), "Hello, my name is Peter", "What does 'this' refer to when it is not part of an object?");
2727
});
2828

2929
test("'this' set explicitly", function () {
@@ -36,7 +36,7 @@ test("'this' set explicitly", function () {
3636

3737
// calling a function with 'call' lets us assign 'this' explicitly
3838
var message = person.intro.call({__: "Frank"});
39-
equal(message, "Hello, my name is Frank", "What does 'this' referer to when you use the 'call()' method?");
39+
equal(message, "Hello, my name is Frank", "What does 'this' refer to when you use the 'call()' method?");
4040
});
4141

4242
// extra credit: underscore.js has a 'bind' function http://documentcloud.github.com/underscore/#bind

0 commit comments

Comments
 (0)