Skip to content

Commit

Permalink
Use innerWidth instead because of jQuery bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Nov 21, 2015
1 parent 58e4f5b commit b4804cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ s.getActiveBreakpoint = function () {
});
for (var i = 0; i < points.length; i++) {
point = points[i];
if (point >= $(window).width() && !breakpoint) {
if (point >= window.innerWidth && !breakpoint) {
breakpoint = point;
}
}
Expand Down

0 comments on commit b4804cc

Please sign in to comment.