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

Commit

Permalink
made htmlclass private. unlikely an override would be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed May 24, 2011
1 parent fa840f4 commit 607dadf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rwd-images/rwd-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
//defaults / mixins
var rwdi = (function(){
var defaults = {
widthBreakPoint: 480,
htmlClass: "rwd-imgs-lrg"
widthBreakPoint: 480
};
//mixins from rwd_images global
if( 'rwd_images' in win ){
Expand All @@ -19,7 +18,8 @@
}
}
return defaults;
})(),
})(),
htmlClass = "rwd-imgs-lrg",
widthBreakPoint = rwdi.widthBreakPoint,
wideload = win.screen.availWidth > widthBreakPoint,
filePath = location.href,
Expand All @@ -40,7 +40,7 @@
}

//add HTML class
doc.documentElement.className += " " + rwdi.htmlClass;
doc.documentElement.className += " " + htmlClass;

//find and replace img elements
var findrepsrc = function(){
Expand Down

0 comments on commit 607dadf

Please sign in to comment.