Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor comparison change
  • Loading branch information
i-like-robots committed Apr 13, 2012
1 parent c0e6d3a commit 3913a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/modal.js
@@ -1,8 +1,8 @@
/**
* @name Simple modal
* @author Matt Hinchliffe
* @modified 08/03/2012
* @version 0.6.6
* @modified 13/04/2012
* @version 0.6.7
* @requires jQuery 1.7+
* @description A simple modal overlay
* @example
Expand Down Expand Up @@ -86,7 +86,7 @@
}

// Bind events and get dimensions from the window if attached to the body
this.context = this.target.nodeName.toLowerCase() === 'body' ? $(window) : $( this.target ).css('position', 'relative');
this.context = this.target === document.body ? $(window) : $( this.target ).css('position', 'relative');

// Only fix the modal if attached to the body
if (this.opts.fixed)
Expand Down

0 comments on commit 3913a8d

Please sign in to comment.