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

Commit

Permalink
fix merge error for named amd module
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Mar 5, 2015
1 parent 57e81f4 commit a5859fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
16 changes: 2 additions & 14 deletions dist/picturefill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Picturefill - v2.3.0-beta - 2015-02-11
/*! Picturefill - v2.3.0-beta - 2015-03-05
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
Expand Down Expand Up @@ -713,18 +713,6 @@ window.matchMedia || (window.matchMedia = function() {
/* expose methods for testing */
picturefill._ = pf;

/* expose picturefill */
if ( typeof module === "object" && typeof module.exports === "object" ) {
// CommonJS, just export
module.exports = picturefill;
} else if ( typeof define === "function" && define.amd ) {
// AMD support
define( function() { return picturefill; } );
}

if ( typeof w === "object" ) {
// If no AMD and we are in the browser, attach to window
w.picturefill = picturefill;
}
expose( picturefill );

} )( window, window.document, new window.Image() );
4 changes: 2 additions & 2 deletions dist/picturefill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions src/picturefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,18 +664,6 @@
/* expose methods for testing */
picturefill._ = pf;

/* expose picturefill */
if ( typeof module === "object" && typeof module.exports === "object" ) {
// CommonJS, just export
module.exports = picturefill;
} else if ( typeof define === "function" && define.amd ) {
// AMD support
define( function() { return picturefill; } );
}

if ( typeof w === "object" ) {
// If no AMD and we are in the browser, attach to window
w.picturefill = picturefill;
}
expose( picturefill );

} )( window, window.document, new window.Image() );

0 comments on commit a5859fb

Please sign in to comment.