diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-07 14:29:18 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-07 14:29:18 +0200 |
commit | 4259c8b65351ae91c5d8265fdb51b2b59073691b (patch) | |
tree | 226561b6f48133e03d92e16b02c2e8f09ada5ea8 | |
parent | 7f870cf9c357f6a1138ba612ace7d7249f85e250 (diff) |
Add more names for functions that show up in Firefox profiler as anonymous.
-rw-r--r-- | src/library_browser.js | 2 | ||||
-rw-r--r-- | src/library_gl.js | 6 | ||||
-rw-r--r-- | src/library_openal.js | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index b70dbc84..39a1c55d 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -359,7 +359,7 @@ mergeInto(LibraryManager.library, { canvas.requestFullScreen(); }, - requestAnimationFrame: function(func) { + requestAnimationFrame: function requestAnimationFrame(func) { if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js) setTimeout(func, 1000/60); } else { diff --git a/src/library_gl.js b/src/library_gl.js index 7074f844..14e70868 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -277,7 +277,7 @@ var LibraryGL = { }, #if FULL_ES2 - calcBufLength: function(size, type, stride, count) { + calcBufLength: function calcBufLength(size, type, stride, count) { if (stride > 0) { return count * stride; // XXXvlad this is not exactly correct I don't think } @@ -287,7 +287,7 @@ var LibraryGL = { usedTempBuffers: [], - preDrawHandleClientVertexAttribBindings: function(count) { + preDrawHandleClientVertexAttribBindings: function preDrawHandleClientVertexAttribBindings(count) { GL.resetBufferBinding = false; var used = GL.usedTempBuffers; @@ -321,7 +321,7 @@ var LibraryGL = { } }, - postDrawHandleClientVertexAttribBindings: function() { + postDrawHandleClientVertexAttribBindings: function postDrawHandleClientVertexAttribBindings() { if (GL.resetBufferBinding) { Module.ctx.bindBuffer(Module.ctx.ARRAY_BUFFER, GL.buffers[GL.currArrayBuffer]); } diff --git a/src/library_openal.js b/src/library_openal.js index e8a2e223..eb152f62 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -8,13 +8,13 @@ var LibraryOpenAL = { QUEUE_INTERVAL: 25, QUEUE_LOOKAHEAD: 100, - updateSources: function(context) { + updateSources: function updateSources(context) { for (var i = 0; i < context.src.length; i++) { AL.updateSource(context.src[i]); } }, - updateSource: function(src) { + updateSource: function updateSource(src) { #if OPENAL_DEBUG var idx = AL.currentContext.src.indexOf(src); #endif @@ -65,7 +65,7 @@ var LibraryOpenAL = { } }, - setSourceState: function(src, state) { + setSourceState: function setSourceState(src, state) { #if OPENAL_DEBUG var idx = AL.currentContext.src.indexOf(src); #endif @@ -119,7 +119,7 @@ var LibraryOpenAL = { } }, - stopSourceQueue: function(src) { + stopSourceQueue: function stopSourceQueue(src) { for (var i = 0; i < src.queue.length; i++) { var entry = src.queue[i]; if (entry.src) { |