diff --git a/hammer.js b/hammer.js index 5ea778100..ce499d112 100644 --- a/hammer.js +++ b/hammer.js @@ -3,7 +3,7 @@ * * Copyright (c) Jorik Tangelder; * Licensed under the MIT license */ -(function(window, document, exportName, undefined) { +if( typeof window !== "undefined" && typeof document !== "undefined" )(function(window, document, exportName, undefined) { 'use strict'; /** * @private