Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use "this" since it is inside the object we refer to

  • Loading branch information...
commit a6fb42a8423c9df70815b0d3d1a00e66fa6a943d 1 parent 2b8f5f7
@bluesmoon bluesmoon authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 boomerang.js
View
8 boomerang.js
@@ -448,15 +448,15 @@ var impl = {
var t_end, t_start = new Date().getTime();
// Disable use of RT cookie by setting its name to a falsy value
- if(!impl.cookie) {
+ if(!this.cookie) {
return this;
}
// We use document.URL instead of location.href because of a bug in safari 4
// where location.href is URL decoded
- if(!BOOMR.utils.setCookie(impl.cookie,
+ if(!BOOMR.utils.setCookie(this.cookie,
{ s: t_start, r: d.URL.replace(/#.*/, '') },
- impl.cookie_exp,
+ this.cookie_exp,
"/", null)
) {
BOOMR.error("cannot set start cookie", "rt");
@@ -469,7 +469,7 @@ var impl = {
// The user Most likely has cookie prompting turned on so
// t_start won't be the actual unload time
// We bail at this point since we can't reliably tell t_done
- BOOMR.utils.removeCookie(impl.cookie);
+ BOOMR.utils.removeCookie(this.cookie);
// at some point we may want to log this info on the server side
BOOMR.error("took more than 50ms to set cookie... aborting: "
Please sign in to comment.
Something went wrong with that request. Please try again.