fixed multiple renderer bug

This commit is contained in:
Rocky Duan
2012-08-06 22:20:56 -04:00
parent fe02d04f07
commit d33ddec470

View File

@@ -8,11 +8,14 @@ class @MathJaxDelayRenderer
elapsedTime: 0
mathjaxDelay: 0
mathjaxTimeout: undefined
bufferId: "mathjax_delay_buffer"
bufferId = "mathjax_delay_buffer"
numBuffers = 0
constructor: (params) ->
params = params || {}
@maxDelay = params["maxDelay"] || @maxDelay
@bufferId = params["bufferId"] || (bufferId + numBuffers)
numBuffers += 1
@$buffer = $("<div>").attr("id", @bufferId).css("display", "none").appendTo($("body"))
# render: (params) ->