From 7ca226e143bde81016bf1bbd6817fa28227d9ab3 Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Fri, 12 Oct 2012 00:41:43 +0300 Subject: [PATCH] Removed unused reference to "document" The `document` global is not used in postal afaic. You could still access it through `global.window`. I understand this is a browser version of postal, but it actually broke my r.js optimized build, since postal tries to access this global property on boot. --- src/browser/postal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/browser/postal.js b/src/browser/postal.js index 6aa477e..6f8cc1f 100644 --- a/src/browser/postal.js +++ b/src/browser/postal.js @@ -1,14 +1,14 @@ -(function ( root, doc, factory ) { +(function ( root, factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define( ["underscore"], function ( _ ) { - return factory( _, root, doc ); + return factory( _, root ); } ); } else { // Browser globals - factory( root._, root, doc ); + factory( root._, root ); } -}( this, document, function ( _, global, document, undefined ) { +}( this, function ( _, global, undefined ) { //import("../Constants.js"); //import("../ConsecutiveDistinctPredicate.js");