| Index: lib/compat.js |
| =================================================================== |
| --- a/lib/compat.js |
| +++ b/lib/compat.js |
| @@ -11,20 +11,19 @@ |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| // TODO: These need to be defined properly |
| +var window = this; |
| function XMLHttpRequest() {}; |
| -var window = { |
| - requestFileSystem: function(){} |
| -}; |
| +function requestFileSystem() {}; |
| // |
| // Module framework stuff |
| // |
| function require(module) |
| { |
| return require.scopes[module]; |
| @@ -258,17 +257,17 @@ FakeTimer.prototype = |
| { |
| this.callback = callback; |
| this.delay = delay; |
| this.scheduleTimeout(); |
| }, |
| scheduleTimeout: function() |
| { |
| var me = this; |
| - window.setTimeout(function() |
| + setTimeout(function() |
| { |
| try |
| { |
| me.callback(); |
| } |
| catch(e) |
| { |
| Cu.reportError(e); |