title: i am try to make jquery plugin
body: <p>this code is not work </p>
  
  <p><strong>error:</strong> function not defind</p>
  
  <pre><code>!function (root, factory) {
      if (typeof define === 'function' &amp;&amp; define.amd) {
          define(['jquery'], factory);
      } else {
          factory(root.jQuery);
      }
  }(this, function () {
      var hello= {};
      hello.msg=function(){
          alert('hiii')
      }
  })
  </code></pre>
  
  <p>but  i am write a code without use this ,then it's work. </p>
  
  <pre><code>!function (root, factory) {
      if (typeof define === 'function' &amp;&amp; define.amd) {
          define(['jquery'], factory);
      } else {
          factory(root.jQuery);
      }
  }(this, function () {
      /* write your function*/
  })
  </code></pre>
  
  <p>now, you can help me. how to make proper jquery plugin!!!</p>