0
function ({
  arg1: ...,
  arg2: ...,
  arg3: function() {
    return (arg1 + arg2);
  }
}) { ... };

I wonder if something like this is possible, and if so, how do I address to the first two arguments in the third one?

PS: Below is the working code:

$('#fullpage').fullpage({
  scrollingSpeed: 1000,
  easingcss3: "cubic-bezier(0.39, 0.575, 0.565, 1)",
  afterLoad: function(anchorLink, index) {
    // this is the place where I want to use the scrollingSpeed and easingcss3 values
  },
});
sdvnksv
  • 9,350
  • 18
  • 56
  • 108
  • What you posted is totally not possible. What are you trying to do exactly, I don't get it? Could you explain it on some practical code? A code that would work better if the functionality you desire existed? – Tomáš Zato Nov 18 '15 at 11:02
  • 2
    you simply put the statement `arg3=arg1+arg2` in the body of the function. later you can use all 3 variables in that function. why you want to do this in this way..? – Rajesh kannan Nov 18 '15 at 11:03
  • @TomášZato I've updated the code. – sdvnksv Nov 18 '15 at 11:08

0 Answers0