Underscore.js And Noconflict
Writing a third-party javascript code which uses underscore.js and tries to avoid conflicts with the underscore.js version that might be used on the main site. So, my naive code is
Solution 1:
There was a global exports
object defined, which prevented the underscore.js to be installed properly. The object has two functions declared: compile()
and compileToString()
. The functions' implementation reveals the LF
object which is most likely belongs to LiveFyre Javascript API: http://www.livefyre.com/docs/javascript-sdk-reference.
That's the investigation about the unsuccessful underscore.js installation. Still puzzled on what shall I do now and how to resolve it properly: underscore.js, global object named "exports" and livefyre javascript API - integration conflict.
Post a Comment for "Underscore.js And Noconflict"