2

Possible Duplicate:
What does the exclamation mark do before the function?

So the start of the morpheus script has this:

!function (name, definition) {
  if (typeof define == 'function') define(definition)
  else if (typeof module != 'undefined') module.exports = definition()
  else this[name] = definition()
}('morpheus', function () {

why is there a ! there?

Community
  • 1
  • 1
CamelCamelCamel
  • 5,200
  • 8
  • 61
  • 93
  • 2
    It was answered before, look at this post http://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function – arunes Feb 22 '12 at 09:00
  • 1
    Great explanation: http://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function – Aaron Feb 22 '12 at 09:00

0 Answers0