Skip to content
Browse files

Fixed whitespace issue, other minor style change

  • Loading branch information...
1 parent 9d1cabb commit f223500accb3f0ca47384db59f3157fcf52abdab Michael Angeletti committed Nov 9, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 adgeletti/media/adgeletti.js
View
5 adgeletti/media/adgeletti.js
@@ -25,14 +25,13 @@ window.Adgeletti = {
display: function(breakpoint){
console.log('Displaying ads for breakpoint "' + breakpoint + '"');
var positions = this.data.breakpoint || [];
- var num_positions = positions.length;
- if(num_positions == 0){ // Johnny 5
+ if(positions.length == 0){ // Johnny 5
console.log('No ads for breakpoint "' + breakpoint + '"');
return;
}
- for(var i = 0; i < num_positions; ++i){
+ for(var i = 0; i < positions.length; ++i){
var pos = positions[i];
// Show the div
document.getElementById(pos.div_id).style.display = 'block';

0 comments on commit f223500

Please sign in to comment.
Something went wrong with that request. Please try again.