Closed andrevinsky closed 11 years ago
This set of fixes has become the necessary measure to enable the plugin to work in our project under FireFox and IE (10).
Several js-errors that prevented functioning in the said browsers were due to the eval()-related bugs, uses of undefined variables, and scoping.
Changes in line #678: if we assume the opts.verso is jQuery object it makes sense to pass it as-is.
See, the call to .html()
method only narrows the types of content which can be passed on to the plugin to.. text.
In fact, gotten rid of .html()
, we now can pass anything the jQuery .append()
method can handle (primarily another jQuery object and not a simple HTML markup). A possibly deep-cloned DOM object WITH events hooked to it? Hmm. It allows us to interact with the verso side.
undefined
parameter to allow direct comparison$.proxy()
to eliminate use of thethat
var_Axis
is supplied with thevar
keyword (to prevent global scope pollution).convertColor()
function rewritten to eliminate use ofeval()
AND considertransparent
value of a colortransparent
alpha is set to0
, and color - to#ffffff
eval()
now in Flippy)