Skip to content

Commit

Permalink
Remove this screen based optimization in case of edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Mar 31, 2014
1 parent 165907b commit 15f1a5f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,15 +610,9 @@
if (!points) throw new TypeError('.prop');
}

// Remove breakpoints that are above the device's max dimension,
// in order to reduce the number of iterations needed later.
this.breakpoints = isNumeric ? sift(points, function(n) {
return n <= screenMax;
}) : points;

// Use the breakpoints array to create array of data keys:
this.keys = affix(this.breakpoints, this.prefix);
this.aka = null; // Reset to just in case a value was merged in.
this.breakpoints = points;
this.keys = affix(this.breakpoints, this.prefix); // Create array of data keys.
this.aka = null; // Reset just in case a value was merged in.

if (aliases) {
aliasKeys = [];
Expand Down

0 comments on commit 15f1a5f

Please sign in to comment.