Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from Volker-E/master
Browse files Browse the repository at this point in the history
typo and whitespace changes
  • Loading branch information
brandonaaron committed Dec 4, 2013
2 parents 29dc6e2 + 09f1bb3 commit 3e8a04d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.bgiframe.js
Expand Up @@ -7,10 +7,10 @@
*/

(function (factory) {
if (typeof define === 'function' && define.amd) {
if ( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
} else if ( typeof exports === 'object' ) {
// Node/CommonJS style for Browserify
module.exports = factory;
} else {
Expand All @@ -26,11 +26,11 @@
height : 'auto', // auto == offsetHeight
opacity : true,
src : 'javascript:false;',
conditional : /MSIE 6\.0/.test(navigator.userAgent) // expresion or function. return false to prevent iframe insertion
conditional : /MSIE 6\.0/.test(navigator.userAgent) // expression or function. return false to prevent iframe insertion
}, s);

// wrap conditional in a function if it isn't already
if (!$.isFunction(s.conditional)) {
if ( !$.isFunction(s.conditional) ) {
var condition = s.conditional;
s.conditional = function() { return condition; };
}
Expand Down

0 comments on commit 3e8a04d

Please sign in to comment.