Problem with folding eclipse code

I'm having a problem folding the Eclipse JavaScript code incorrectly and I have no idea what the problem is. I'm in the process of creating a game engine, so I have a specific object constructor, followed by a function that calculates the frame rate:

function Constructor() { //A whole bunch of code for this constructor this.method = function() { //A bunch of method code this.context.font = "blahblah"; }; } function calculateFrameRate(times) { //All the code for calculating framerate } 

For some reason, it gives me the ability to reset, starting with the context.font statement, and it is completely minimized through the frame rate calculation function. This is obviously not a valid block of code for a crash. Any ideas on what might be the issue?

+4
source share
1 answer

try assigning functions in this.method = function() { something like this.method = function method() {

0
source

All Articles