<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[30244] trunk/src: Improve `wp.Uploader` documentation.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/30244">30244</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/30244","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2014-11-05 19:36:27 +0000 (Wed, 05 Nov 2014)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Improve `wp.Uploader` documentation.
Props ericlewis.
See <a href="https://core.trac.wordpress.org/ticket/30260">#30260</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminasyncuploadphp">trunk/src/wp-admin/async-upload.php</a></li>
<li><a href="#trunksrcwpincludesjspluploadwppluploadjs">trunk/src/wp-includes/js/plupload/wp-plupload.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminasyncuploadphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/async-upload.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/async-upload.php 2014-11-05 18:02:44 UTC (rev 30243)
+++ trunk/src/wp-admin/async-upload.php 2014-11-05 19:36:27 UTC (rev 30244)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,6 +1,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Accepts file uploads from swfupload or other asynchronous upload methods.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Server-side file upload handler from wp-plupload, swfupload or other asynchronous upload methods.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @package WordPress
</span><span class="cx" style="display: block; padding: 0 10px"> * @subpackage Administration
</span></span></pre></div>
<a id="trunksrcwpincludesjspluploadwppluploadjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/js/plupload/wp-plupload.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/js/plupload/wp-plupload.js 2014-11-05 18:02:44 UTC (rev 30243)
+++ trunk/src/wp-includes/js/plupload/wp-plupload.js 2014-11-05 19:36:27 UTC (rev 30244)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,18 +10,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * An object that helps create a WordPress uploader using plupload.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * A WordPress uploader.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param options - object - The options passed to the new plupload instance.
- * Accepts the following parameters:
- * - container - The id of uploader container.
- * - browser - The id of button to trigger the file select.
- * - dropzone - The id of file drop target.
- * - plupload - An object of parameters to pass to the plupload instance.
- * - params - An object of parameters to pass to $_POST when uploading the file.
- * Extends this.plupload.multipart_params under the hood.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The Plupload library provides cross-browser uploader UI integration.
+ * This object bridges the Plupload API to integrate uploads into the
+ * WordPress back-end and the WordPress media experience.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param attributes - object - Attributes and methods for this specific instance.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param {object} options The options passed to the new plupload instance.
+ * @param {object} options.container The id of uploader container.
+ * @param {object} options.browser The id of button to trigger the file select.
+ * @param {object} options.dropzone The id of file drop target.
+ * @param {object} options.plupload An object of parameters to pass to the plupload instance.
+ * @param {object} options.params An object of parameters to pass to $_POST when uploading the file.
+ * Extends this.plupload.multipart_params under the hood.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> Uploader = function( options ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var self = this,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,11 +44,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Arguments to send to pluplad.Uploader().
</ins><span class="cx" style="display: block; padding: 0 10px"> // Use deep extend to ensure that multipart_params and other objects are cloned.
</span><span class="cx" style="display: block; padding: 0 10px"> this.plupload = $.extend( true, { multipart_params: {} }, Uploader.defaults );
</span><span class="cx" style="display: block; padding: 0 10px"> this.container = document.body; // Set default container.
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Extend the instance with options
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Extend the instance with options.
</ins><span class="cx" style="display: block; padding: 0 10px"> //
</span><span class="cx" style="display: block; padding: 0 10px"> // Use deep extend to allow options.plupload to override individual
</span><span class="cx" style="display: block; padding: 0 10px"> // default plupload keys.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,8 +62,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Ensure all elements are jQuery elements and have id attributes
- // Then set the proper plupload arguments to the ids.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Ensure all elements are jQuery elements and have id attributes,
+ // then set the proper plupload arguments to the ids.
</ins><span class="cx" style="display: block; padding: 0 10px"> for ( key in elements ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! this[ key ] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> continue;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,6 +96,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.plupload.required_features.send_binary_string = true;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Initialize the plupload instance.
</ins><span class="cx" style="display: block; padding: 0 10px"> this.uploader = new plupload.Uploader( this.plupload );
</span><span class="cx" style="display: block; padding: 0 10px"> delete this.plupload;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,6 +104,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.param( this.params || {} );
</span><span class="cx" style="display: block; padding: 0 10px"> delete this.params;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Custom error callback.
+ *
+ * Add a new error to the errors collection, so other modules can track
+ * and display errors. @see wp.Uploader.errors.
+ *
+ * @param {string} message
+ * @param {object} data
+ * @param {plupload.File} file File that was uploaded.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> error = function( message, data, file ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( file.attachment ) {
</span><span class="cx" style="display: block; padding: 0 10px"> file.attachment.destroy();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,6 +128,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> self.error( message, data, file );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * After the Uploader has been initialized, initialize some behaviors for the dropzone.
+ *
+ * @param {plupload.Uploader} uploader Uploader instance.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> this.uploader.bind( 'init', function( uploader ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var timer, active, dragdrop,
</span><span class="cx" style="display: block; padding: 0 10px"> dropzone = self.dropzone;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -132,8 +150,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return dropzone.unbind('.wp-uploader');
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // 'dragenter' doesn't fire correctly,
- // simulate it with a limited 'dragover'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 'dragenter' doesn't fire correctly, simulate it with a limited 'dragover'.
</ins><span class="cx" style="display: block; padding: 0 10px"> dropzone.bind( 'dragover.wp-uploader', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( timer ) {
</span><span class="cx" style="display: block; padding: 0 10px"> clearTimeout( timer );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,13 +169,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // being quickly removed and re-added when elements inside the
</span><span class="cx" style="display: block; padding: 0 10px"> // dropzone are repositioned.
</span><span class="cx" style="display: block; padding: 0 10px"> //
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // See https://core.trac.wordpress.org/ticket/21705
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // @see https://core.trac.wordpress.org/ticket/21705
</ins><span class="cx" style="display: block; padding: 0 10px"> timer = setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> active = false;
</span><span class="cx" style="display: block; padding: 0 10px"> dropzone.trigger('dropzone:leave').removeClass('drag-over');
</span><span class="cx" style="display: block; padding: 0 10px"> }, 0 );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> self.ready = true;
</span><span class="cx" style="display: block; padding: 0 10px"> $(self).trigger( 'uploader:ready' );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -173,6 +190,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $('#' + this.uploader.id + '_html5_container').hide();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * After files were filtered and added to the queue, create a model for each.
+ *
+ * @event FilesAdded
+ * @param {plupload.Uploader} uploader Uploader instance.
+ * @param {Array} files Array of file objects that were added to queue by the user.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> this.uploader.bind( 'FilesAdded', function( up, files ) {
</span><span class="cx" style="display: block; padding: 0 10px"> _.each( files, function( file ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var attributes, image;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,7 +219,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Handle early mime type scanning for images.
</span><span class="cx" style="display: block; padding: 0 10px"> image = /(?:jpe?g|png|gif)$/i.exec( file.name );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Did we find an image?
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // For images set the model's type and subtype attributes.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( image ) {
</span><span class="cx" style="display: block; padding: 0 10px"> attributes.type = 'image';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,9 +228,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> attributes.subtype = ( 'jpg' === image[0] ) ? 'jpeg' : image[0];
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Create the `Attachment`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Create a model for the attachment, and add it to the Upload queue collection
+ // so listeners to the upload queue can track and display upload progress.
</ins><span class="cx" style="display: block; padding: 0 10px"> file.attachment = wp.media.model.Attachment.create( attributes );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> Uploader.queue.add( file.attachment );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> self.added( file.attachment );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -221,6 +245,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> self.progress( file.attachment );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * After a file is successfully uploaded, update its model.
+ *
+ * @param {plupload.Uploader} uploader Uploader instance.
+ * @param {plupload.File} file File that was uploaded.
+ * @param {Object} response Object with response properties.
+ * @return {mixed}
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> this.uploader.bind( 'FileUploaded', function( up, file, response ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var complete;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -252,6 +284,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> self.success( file.attachment );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * When plupload surfaces an error, send it to the error handler.
+ *
+ * @param {plupload.Uploader} uploader Uploader instance.
+ * @param {Object} error Contains code, message and sometimes file and other details.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> this.uploader.bind( 'Error', function( up, pluploadError ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var message = pluploadL10n.default_error,
</span><span class="cx" style="display: block; padding: 0 10px"> key;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -283,6 +321,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> Uploader.uuid = 0;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Map Plupload error codes to user friendly error messages.
</ins><span class="cx" style="display: block; padding: 0 10px"> Uploader.errorMap = {
</span><span class="cx" style="display: block; padding: 0 10px"> 'FAILED': pluploadL10n.upload_failed,
</span><span class="cx" style="display: block; padding: 0 10px"> 'FILE_EXTENSION_ERROR': pluploadL10n.invalid_filetype,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -324,6 +363,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Make a few internal event callbacks available on the wp.Uploader object
+ * to change the Uploader internals if absolutely necessary.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> init: function() {},
</span><span class="cx" style="display: block; padding: 0 10px"> error: function() {},
</span><span class="cx" style="display: block; padding: 0 10px"> success: function() {},
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -370,7 +413,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Create a collection of attachments in the upload queue,
+ // so that other modules can track and display upload progress.
</ins><span class="cx" style="display: block; padding: 0 10px"> Uploader.queue = new wp.media.model.Attachments( [], { query: false });
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ // Create a collection to collect errors incurred while attempting upload.
</ins><span class="cx" style="display: block; padding: 0 10px"> Uploader.errors = new Backbone.Collection();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> exports.Uploader = Uploader;
</span></span></pre>
</div>
</div>
</body>
</html>