diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/build/uploader/uploader-debug.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/build/uploader/uploader-debug.js Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,59 @@ +/* +YUI 3.10.3 (build 2fb5187) +Copyright 2013 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ + +YUI.add('uploader', function (Y, NAME) { + +/** +* Provides UI for selecting multiple files and functionality for +* uploading multiple files to the server with support for either +* html5 or Flash transport mechanisms, automatic queue management, +* upload progress monitoring, and error events. +* @module uploader +* @main uploader +* @since 3.5.0 +*/ + +/** +* `Y.Uploader` serves as an alias for either `Y.UploaderFlash` +* or `Y.UploaderHTML5`, depending on the feature set available +* in a specific browser. If neither HTML5 nor Flash transport layers are available, `Y.Uploader.TYPE` +* static property is set to `"none"`. +* +* @class Uploader +*/ + +/** +* The static property reflecting the type of uploader that `Y.Uploader` +* aliases. The possible values are: +* +* +* @property TYPE +* @type {String} +* @static +*/ + +var Win = Y.config.win; + +if (Win && Win.File && Win.FormData && Win.XMLHttpRequest) { + Y.Uploader = Y.UploaderHTML5; +} + +else if (Y.SWFDetect.isFlashVersionAtLeast(10,0,45)) { + Y.Uploader = Y.UploaderFlash; +} + +else { + Y.namespace("Uploader"); + Y.Uploader.TYPE = "none"; +} + +}, '3.10.3', {"requires": ["uploader-html5", "uploader-flash"]});