title: "Uncaught TypeError: Cannot read property 'open' of undefined" - after calling ".start();" - plupload
body: <p>Using plupload, I get the following error when calling .start().</p>
  
  <p><img src="https://cloud.githubusercontent.com/assets/3786627/4193148/4f6f55c0-379f-11e4-852e-103721f81078.png" alt="image"></p>
  
  <p>From this line:</p>
  
  <p><img src="https://cloud.githubusercontent.com/assets/3786627/4198919/782d833c-37ff-11e4-9ab1-0222963e5bd9.png" alt="image"></p>
  
  <p>I am using RequireJS to handle the libary. Using latest version (v2.1.2). My code:</p>
  
  <p>How my script looks like:</p>
  
  <pre><code>define(['jquery', 'plupload'], function($) {
      /**
       * Init
       */
  
          uploader = new plupload.Uploader({
              runtimes: 'html5,flash,silverlight,html4', // gears,html5,flash,silverlight,browserplus
              browse_button: 'uploadProfileImage',
              max_file_size: '2mb',
              url: ajax + 'uploadImage&amp;temp=1',
              flash_swf_url: website_url + 'assets/js/lib/plupload/Moxie.swf',
              silverlight_xap_url: website_url + 'assets/js/lib/plupload/Moxie.xap',
              filters: [
                  {
                      title: "Choose image",
                      extensions: "jpg,gif,png"
                  }
              ],
  
              multipart_params : {
                  type: '1'
              },
          });
  
          /**
           * Init file upload
           */
  
          uploader.bind('FilesAdded', function (up, files) {
              uploader.start();
          });
  
  
          uploader.bind('QueueChanged', function (up, files) {
              uploader.start();
              up.refresh();
          });
  
          /**
           * On callback (when file is uploaded)
           */
  
          uploader.bind('FileUploaded', function(up, file, info) {
              /**
               * Handle callback...
               */
          });
  });
  </code></pre>
  
  <p>How my require config looks like:</p>
  
  <pre><code>    requirejs.config({
          paths: {
              shim: {
                  plupload: {
                      exports: "plupload"
                  },
              },
  
              paths: {
                  jquery: [
                      'lib/jquery.min'
                  ],
  
                  plupload: [
                      'lib/plupload.full.min'
                  ],
              }
          }
      });
  </code></pre>
  
  <p>The issues came up after migrating to RequireJS - previously it worked without issues.</p>