Browse Source

Merge pull request #257 from connor/master

Fix js errors on new page that show up when viewing on desktop.
pull/259/head
Connor Montgomery 11 years ago
parent
commit
74e75a9f46
  1. 3
      docs/assets/js/docs.js

3
docs/assets/js/docs.js

@ -38,6 +38,7 @@ $(function() {
footerHeight = $('.docs-footer').outerHeight(false);
toolbarToggle = $('.js-docs-component-toolbar');
if (!device.length) return
// Device placement
if (windowWidth >= 768) {
device.initialLeft = device.offset().left;
@ -167,6 +168,8 @@ $(function() {
}
}
if (!device) return
$(window).on('load resize', initialize);
$(window).on('load', function () { new FingerBlast('.device-content'); });
});

Loading…
Cancel
Save