diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/build/io-upload-iframe/io-upload-iframe.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/build/io-upload-iframe/io-upload-iframe.js Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,299 @@ +/* +YUI 3.10.3 (build 2fb5187) +Copyright 2013 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ + +YUI.add('io-upload-iframe', function (Y, NAME) { + +/** +Extends the IO to enable file uploads, with HTML forms +using an iframe as the transport medium. +@module io +@submodule io-upload-iframe +@for IO +**/ + +var w = Y.config.win, + d = Y.config.doc, + _std = (d.documentMode && d.documentMode >= 8), + _d = decodeURIComponent, + _end = Y.IO.prototype.end; + +/** + * Creates the iframe transported used in file upload + * transactions, and binds the response event handler. + * + * @method _cFrame + * @private + * @param {Object} o Transaction object generated by _create(). + * @param {Object} c Configuration object passed to YUI.io(). + * @param {Object} io + */ +function _cFrame(o, c, io) { + var i = Y.Node.create('