In browser loader, refer to global object as 'this', not 'self'

Closes #41
This commit is contained in:
Marijn Haverbeke
2013-05-08 15:16:06 +02:00
parent df763df61b
commit 4d8eeabf52
4 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
(function(mod) {
if (typeof exports == "object" && typeof module == "object") return mod(exports); // CommonJS
if (typeof define == "function" && define.amd) return define(["exports"], mod); // AMD
mod(self.acorn.walk = {}); // Plain browser env
mod((this.acorn || (this.acorn = {})).walk = {}); // Plain browser env
})(function(exports) {
"use strict";