Skip to content

Instantly share code, notes, and snippets.

@olebedev
Last active December 27, 2015 20:18
Show Gist options
  • Save olebedev/7383045 to your computer and use it in GitHub Desktop.
Save olebedev/7383045 to your computer and use it in GitHub Desktop.
((root, Library)->
if typeof! define is \Function && typeof! define[\amd] is "Object" && define[\amd]?
define <[ exports ]>, Library
else
Library = Library(typeof exports is "object" and exports or (root["Library"] = do
noConflict: ((original) ->
noConflict = ->
root["Libraby"] = original
delete! Library.noConflict
Library
noConflict
)(root["Libraby"])
)
)
)(@, (exports)->
# module code here
return exports
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment