瀏覽代碼

Merge pull request #709 from elron/patch-27

update script.js - Added a missing line
Eddie Machado 11 年之前
父節點
當前提交
e6b26d7335
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      library/js/scripts.js

+ 3 - 0
library/js/scripts.js

@@ -66,6 +66,9 @@ var timeToWaitForLast = 100;
  *    // if we're on the home page, we wait the set amount (in function above) then fire the function
  *    if( is_home ) { waitForFinalEvent( function() {
  *
+ *	// update the viewport, in case the window size has changed
+ *	viewport = updateViewportDimensions();
+ *
  *      // if we're above or equal to 768 fire this off
  *      if( viewport.width >= 768 ) {
  *        console.log('On home page and window sized to 768 width or more.');