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

Commit

Permalink
removed some mixin code - only one option so it was overkill
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed May 24, 2011
1 parent 607dadf commit 53a9a7a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions rwd-images/rwd-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,9 @@
*/
(function(win){
//defaults / mixins
var rwdi = (function(){
var defaults = {
widthBreakPoint: 480
};
//mixins from rwd_images global
if( 'rwd_images' in win ){
for (var setting in win.rwd_images) {
defaults[setting] = win.rwd_images[setting];
}
}
return defaults;
})(),
var rwdi = win.rwd_images || {},
htmlClass = "rwd-imgs-lrg",
widthBreakPoint = rwdi.widthBreakPoint,
widthBreakPoint = rwdi.widthBreakPoint || 480,
wideload = win.screen.availWidth > widthBreakPoint,
filePath = location.href,
dirPath = filePath.substring(0, filePath.lastIndexOf('/')) + '/',
Expand Down

0 comments on commit 53a9a7a

Please sign in to comment.