{"action":"created","issue":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1615","labels_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1615/labels{/name}","comments_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1615/comments","events_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1615/events","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/1615","id":113124274,"number":1615,"title":"Callback  afterLoad: function(index) not working","user":{"login":"wanbinkimoon","id":10087639,"avatar_url":"https://avatars.githubusercontent.com/u/10087639?v=3","gravatar_id":"","url":"https://api.github.com/users/wanbinkimoon","html_url":"https://github.com/wanbinkimoon","followers_url":"https://api.github.com/users/wanbinkimoon/followers","following_url":"https://api.github.com/users/wanbinkimoon/following{/other_user}","gists_url":"https://api.github.com/users/wanbinkimoon/gists{/gist_id}","starred_url":"https://api.github.com/users/wanbinkimoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanbinkimoon/subscriptions","organizations_url":"https://api.github.com/users/wanbinkimoon/orgs","repos_url":"https://api.github.com/users/wanbinkimoon/repos","events_url":"https://api.github.com/users/wanbinkimoon/events{/privacy}","received_events_url":"https://api.github.com/users/wanbinkimoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-24T01:08:51Z","updated_at":"2015-10-24T12:15:42Z","closed_at":"2015-10-24T11:12:15Z","body":"Hello, <br>\r\nI'm trying to trigger some events onLeave and afterLoad using the index positioning but it wont work, there is any code I have to refer in order to activate this function?\r\n\r\nAt the moment my code look like this\r\n```$(document).ready(function() {\r\n  $('#fullpage').fullpage({\r\n\r\n    //Navigation\r\n    menu: true,\r\n    lockAnchors: false,\r\n    navigation: true,\r\n    navigationPosition: 'left',\r\n\r\n    //Scrolling\r\n    css3: true,\r\n    scrollingSpeed: 700,\r\n    autoScrolling: true,\r\n    fitToSection: true,\r\n    fitToSectionDelay: 1000,\r\n    scrollBar: false,\r\n    easing: 'easeInOutCubic',\r\n    easingcss3: 'cubic-bezier(0.490, 0.635, 0.485, 1.125)',\r\n    loopBottom: true,\r\n    loopTop: true,\r\n    continuousVertical: false,\r\n    scrollOverflow: false,\r\n    touchSensitivity: 15,\r\n    normalScrollElementTouchThreshold: 5,\r\n\r\n    afterLoad: function(index) {\r\n            var loadedSection = $(this);\r\n      if(index == 1){\r\n          alert(\"Section 1 ended loading\");\r\n           }\r\n         }\r\n       });\r\n    });\r\n\r\nand the html is really simple \r\n```\r\n <div id=\"fullpage\">\r\n        <div id=\"section-wrap\"> \r\n          <div id=\"section1\" class=\"section\">\r\n            <section>\r\n              <div class=\"bg-wrap\"><img src=\"assets/img/bg.svg\" class=\"bg-section odd\"></div>\r\n              <div class=\"section-content\">\r\n                <div class=\"big-logo-campitura\">\r\n                  <h1>campitura</h1>\r\n                </div>\r\n              </div>\r\n            </section>\r\n          </div>\r\n          <div id=\"section2\" class=\"section\">\r\n            <section>\r\n              <div class=\"logo-campitura\">\r\n                <h1>campitura</h1>\r\n              </div>\r\n              <div class=\"bg-wrap\"><img src=\"assets/img/bg.svg\" class=\"bg-section\"></div>\r\n              <div class=\"section-content section2\">\r\n                <div class=\"text-wrap\">\r\n                  <p class=\"lead-section2\">some text.</p>\r\n                  <p class=\"mailus-section2\">some other text.</p>\r\n                </div>\r\n                <div class=\"container-wrap-section2\"><img src=\"assets/img/container2.svg\" class=\"container-svg-section2\"></div>\r\n              </div>\r\n            </section>\r\n          </div>\r\n```"},"comment":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/comments/150803712","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/1615#issuecomment-150803712","issue_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1615","id":150803712,"user":{"login":"wanbinkimoon","id":10087639,"avatar_url":"https://avatars.githubusercontent.com/u/10087639?v=3","gravatar_id":"","url":"https://api.github.com/users/wanbinkimoon","html_url":"https://github.com/wanbinkimoon","followers_url":"https://api.github.com/users/wanbinkimoon/followers","following_url":"https://api.github.com/users/wanbinkimoon/following{/other_user}","gists_url":"https://api.github.com/users/wanbinkimoon/gists{/gist_id}","starred_url":"https://api.github.com/users/wanbinkimoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanbinkimoon/subscriptions","organizations_url":"https://api.github.com/users/wanbinkimoon/orgs","repos_url":"https://api.github.com/users/wanbinkimoon/repos","events_url":"https://api.github.com/users/wanbinkimoon/events{/privacy}","received_events_url":"https://api.github.com/users/wanbinkimoon/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T12:15:42Z","updated_at":"2015-10-24T12:15:42Z","body":"I will provide a jsfiddle, but i would like to avoid the anchorLink"}}