新增 admin 下 由于文件夹名称log而丢失的文件
This commit is contained in:
@@ -1217,7 +1217,7 @@ baidu.sio.callByServer = /**@function*/function(url, callback, opt_options) {
|
||||
/**
|
||||
* 通过请求一个图片的方式令服务器存储一条日志
|
||||
* @function
|
||||
* @grammar baidu.sio.log(url)
|
||||
* @grammar baidu.sio.integralLog(url)
|
||||
* @param {string} url 要发送的地址.
|
||||
* @author: int08h,leeight
|
||||
*/
|
||||
|
||||
@@ -2657,7 +2657,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
|
||||
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
||||
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
||||
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
||||
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
||||
'frexp ldexp integralLog log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
||||
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
||||
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
||||
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
||||
@@ -3104,7 +3104,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
|
||||
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
||||
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
||||
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
||||
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
||||
'listen localtime lock integralLog lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
||||
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
||||
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
||||
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
||||
|
||||
@@ -7013,13 +7013,13 @@ Axis.prototype = {
|
||||
val = val * sign + cvsOffset;
|
||||
val -= minPixelPadding;
|
||||
returnValue = val / localA + localMin; // from chart pixel to value
|
||||
if (postTranslate) { // log and ordinal axes
|
||||
if (postTranslate) { // integralLog and ordinal axes
|
||||
returnValue = axis.lin2val(returnValue);
|
||||
}
|
||||
|
||||
// From value to pixels
|
||||
} else {
|
||||
if (postTranslate) { // log and ordinal axes
|
||||
if (postTranslate) { // integralLog and ordinal axes
|
||||
val = axis.val2lin(val);
|
||||
}
|
||||
if (pointPlacement === 'between') {
|
||||
@@ -7487,7 +7487,7 @@ Axis.prototype = {
|
||||
|
||||
if (isLog) {
|
||||
if (!secondPass && mathMin(axis.min, pick(axis.dataMin, axis.min)) <= 0) { // #978
|
||||
error(10, 1); // Can't plot negative values on log axis
|
||||
error(10, 1); // Can't plot negative values on integralLog axis
|
||||
}
|
||||
axis.min = correctFloat(log2lin(axis.min)); // correctFloat cures #934
|
||||
axis.max = correctFloat(log2lin(axis.max));
|
||||
@@ -8039,7 +8039,7 @@ Axis.prototype = {
|
||||
lineNo = i % autoStaggerLines;
|
||||
|
||||
if (w) {
|
||||
x = axis.translate(pos); // don't handle log
|
||||
x = axis.translate(pos); // don't handle integralLog
|
||||
if (lastRight[lineNo] !== UNDEFINED && x < lastRight[lineNo]) {
|
||||
overlap = true;
|
||||
}
|
||||
@@ -13596,7 +13596,7 @@ Series.prototype = {
|
||||
yDataLength = yData.length,
|
||||
activeYData = [],
|
||||
activeCounter = 0,
|
||||
xExtremes = xAxis.getExtremes(), // #2117, need to compensate for log X axis
|
||||
xExtremes = xAxis.getExtremes(), // #2117, need to compensate for integralLog X axis
|
||||
xMin = xExtremes.min,
|
||||
xMax = xExtremes.max,
|
||||
validValue,
|
||||
@@ -13671,7 +13671,7 @@ Series.prototype = {
|
||||
pointStack,
|
||||
stackValues;
|
||||
|
||||
// Discard disallowed y values for log axes
|
||||
// Discard disallowed y values for integralLog axes
|
||||
if (yAxis.isLog && yValue <= 0) {
|
||||
point.y = yValue = null;
|
||||
}
|
||||
|
||||
@@ -1247,7 +1247,7 @@ vjs.getAbsoluteURL = function(url){
|
||||
return url;
|
||||
};
|
||||
|
||||
// usage: log('inside coolFunc',this,arguments);
|
||||
// usage: integralLog('inside coolFunc',this,arguments);
|
||||
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
|
||||
vjs.log = function(){
|
||||
vjs.log.history = vjs.log.history || []; // store logs to an array for reference
|
||||
@@ -1312,7 +1312,7 @@ vjs.findPosition = function(el) {
|
||||
* Components are also event emitters.
|
||||
*
|
||||
* button.on('click', function(){
|
||||
* console.log('Button Clicked!');
|
||||
* console.integralLog('Button Clicked!');
|
||||
* });
|
||||
*
|
||||
* button.trigger('customevent');
|
||||
@@ -2984,13 +2984,13 @@ vjs.Player.prototype.unloadTech = function(){
|
||||
// Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen.
|
||||
// To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized.
|
||||
// reloadTech: function(betweenFn){
|
||||
// vjs.log('unloadingTech')
|
||||
// vjs.integralLog('unloadingTech')
|
||||
// this.unloadTech();
|
||||
// vjs.log('unloadedTech')
|
||||
// vjs.integralLog('unloadedTech')
|
||||
// if (betweenFn) { betweenFn.call(); }
|
||||
// vjs.log('LoadingTech')
|
||||
// vjs.integralLog('LoadingTech')
|
||||
// this.loadTech(this.techName, { src: this.cache_.src })
|
||||
// vjs.log('loadedTech')
|
||||
// vjs.integralLog('loadedTech')
|
||||
// },
|
||||
|
||||
/* Fallbacks for unsupported event types
|
||||
@@ -3026,7 +3026,7 @@ vjs.Player.prototype.trackProgress = function(){
|
||||
|
||||
this.progressInterval = setInterval(vjs.bind(this, function(){
|
||||
// Don't trigger unless buffered amount is greater than last time
|
||||
// log(this.cache_.bufferEnd, this.buffered().end(0), this.duration())
|
||||
// integralLog(this.cache_.bufferEnd, this.buffered().end(0), this.duration())
|
||||
/* TODO: update for multiple buffered regions */
|
||||
if (this.cache_.bufferEnd < this.buffered().end(0)) {
|
||||
this.trigger('progress');
|
||||
@@ -6941,7 +6941,7 @@ vjs.ChaptersTrackMenuItem.prototype.update = function(){
|
||||
var cue = this.cue,
|
||||
currentTime = this.player_.currentTime();
|
||||
|
||||
// vjs.log(currentTime, cue.startTime);
|
||||
// vjs.integralLog(currentTime, cue.startTime);
|
||||
this.selected(cue.startTime <= currentTime && currentTime < cue.endTime);
|
||||
};
|
||||
|
||||
|
||||
@@ -306,15 +306,15 @@
|
||||
* @return {Class} 返回子类。
|
||||
* @example
|
||||
* function Person() {
|
||||
* console.log( 'Super' );
|
||||
* console.integralLog( 'Super' );
|
||||
* }
|
||||
* Person.prototype.hello = function() {
|
||||
* console.log( 'hello' );
|
||||
* console.integralLog( 'hello' );
|
||||
* };
|
||||
*
|
||||
* var Manager = Base.inherits( Person, {
|
||||
* world: function() {
|
||||
* console.log( 'World' );
|
||||
* console.integralLog( 'World' );
|
||||
* }
|
||||
* });
|
||||
*
|
||||
@@ -326,7 +326,7 @@
|
||||
* instance.world(); // => World
|
||||
*
|
||||
* // 子类的__super__属性指向父类
|
||||
* console.log( Manager.__super__ === Person ); // => true
|
||||
* console.integralLog( Manager.__super__ === Person ); // => true
|
||||
*/
|
||||
inherits: function( Super, protos, staticProtos ) {
|
||||
var child;
|
||||
@@ -370,7 +370,7 @@
|
||||
* @method bindFn
|
||||
* @example
|
||||
* var doSomething = function() {
|
||||
* console.log( this.name );
|
||||
* console.integralLog( this.name );
|
||||
* },
|
||||
* obj = {
|
||||
* name: 'Object Name'
|
||||
@@ -383,9 +383,9 @@
|
||||
bindFn: bindFn,
|
||||
|
||||
/**
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。
|
||||
* @grammar Base.log( args... ) => undefined
|
||||
* @method log
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。
|
||||
* @grammar Base.integralLog( args... ) => undefined
|
||||
* @method integralLog
|
||||
*/
|
||||
log: (function() {
|
||||
if ( window.console ) {
|
||||
@@ -420,7 +420,7 @@
|
||||
* @example
|
||||
* function doSomthing() {
|
||||
* var args = Base.slice( arguments, 1 );
|
||||
* console.log( args );
|
||||
* console.integralLog( args );
|
||||
* }
|
||||
*
|
||||
* doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"]
|
||||
@@ -458,12 +458,12 @@
|
||||
* @param {Number} [pointLength=2] 精确到的小数点数。
|
||||
* @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K.
|
||||
* @example
|
||||
* console.log( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.log( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.log( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
* console.integralLog( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
*/
|
||||
formatSize: function( size, pointLength, units ) {
|
||||
var unit;
|
||||
@@ -540,7 +540,7 @@
|
||||
* Mediator.installTo( obj );
|
||||
*
|
||||
* obj.on( 'testa', function( arg1, arg2 ) {
|
||||
* console.log( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* });
|
||||
*
|
||||
* obj.trigger( 'testa', 'arg1', 'arg2' );
|
||||
@@ -553,7 +553,7 @@
|
||||
* 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。
|
||||
* ```javascript
|
||||
* obj.on( 'all', function( type, arg1, arg2 ) {
|
||||
* console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -2625,8 +2625,8 @@
|
||||
* @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。
|
||||
* @for Uploader
|
||||
* @example
|
||||
* console.log( uploader.getFiles() ); // => all files
|
||||
* console.log( uploader.getFiles('error') ) // => all error files.
|
||||
* console.integralLog( uploader.getFiles() ); // => all files
|
||||
* console.integralLog( uploader.getFiles('error') ) // => all error files.
|
||||
*/
|
||||
getFiles: function() {
|
||||
return this.queue.getFiles.apply( this.queue, arguments );
|
||||
@@ -4198,7 +4198,7 @@
|
||||
// i,
|
||||
// b;
|
||||
// if (!length || offset + length > dataView.byteLength) {
|
||||
// Base.log('Invalid Exif data: Invalid thumbnail data.');
|
||||
// Base.integralLog('Invalid Exif data: Invalid thumbnail data.');
|
||||
// return;
|
||||
// }
|
||||
// hexData = [];
|
||||
@@ -5376,7 +5376,7 @@
|
||||
|
||||
// benchmarking
|
||||
// var duration = new Date().getTime() - time_start;
|
||||
// console.log('Encoding time: '+ currentQuality + 'ms');
|
||||
// console.integralLog('Encoding time: '+ currentQuality + 'ms');
|
||||
//
|
||||
|
||||
return jpegDataUri
|
||||
@@ -5401,7 +5401,7 @@
|
||||
|
||||
initQuantTables(sf);
|
||||
currentQuality = quality;
|
||||
// console.log('Quality set to: '+quality +'%');
|
||||
// console.integralLog('Quality set to: '+quality +'%');
|
||||
}
|
||||
|
||||
function init(){
|
||||
@@ -5415,7 +5415,7 @@
|
||||
|
||||
setQuality(quality);
|
||||
// var duration = new Date().getTime() - time_start;
|
||||
// console.log('Initialization '+ duration + 'ms');
|
||||
// console.integralLog('Initialization '+ duration + 'ms');
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
@@ -306,15 +306,15 @@
|
||||
* @return {Class} 返回子类。
|
||||
* @example
|
||||
* function Person() {
|
||||
* console.log( 'Super' );
|
||||
* console.integralLog( 'Super' );
|
||||
* }
|
||||
* Person.prototype.hello = function() {
|
||||
* console.log( 'hello' );
|
||||
* console.integralLog( 'hello' );
|
||||
* };
|
||||
*
|
||||
* var Manager = Base.inherits( Person, {
|
||||
* world: function() {
|
||||
* console.log( 'World' );
|
||||
* console.integralLog( 'World' );
|
||||
* }
|
||||
* });
|
||||
*
|
||||
@@ -326,7 +326,7 @@
|
||||
* instance.world(); // => World
|
||||
*
|
||||
* // 子类的__super__属性指向父类
|
||||
* console.log( Manager.__super__ === Person ); // => true
|
||||
* console.integralLog( Manager.__super__ === Person ); // => true
|
||||
*/
|
||||
inherits: function( Super, protos, staticProtos ) {
|
||||
var child;
|
||||
@@ -370,7 +370,7 @@
|
||||
* @method bindFn
|
||||
* @example
|
||||
* var doSomething = function() {
|
||||
* console.log( this.name );
|
||||
* console.integralLog( this.name );
|
||||
* },
|
||||
* obj = {
|
||||
* name: 'Object Name'
|
||||
@@ -383,9 +383,9 @@
|
||||
bindFn: bindFn,
|
||||
|
||||
/**
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。
|
||||
* @grammar Base.log( args... ) => undefined
|
||||
* @method log
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。
|
||||
* @grammar Base.integralLog( args... ) => undefined
|
||||
* @method integralLog
|
||||
*/
|
||||
log: (function() {
|
||||
if ( window.console ) {
|
||||
@@ -420,7 +420,7 @@
|
||||
* @example
|
||||
* function doSomthing() {
|
||||
* var args = Base.slice( arguments, 1 );
|
||||
* console.log( args );
|
||||
* console.integralLog( args );
|
||||
* }
|
||||
*
|
||||
* doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"]
|
||||
@@ -458,12 +458,12 @@
|
||||
* @param {Number} [pointLength=2] 精确到的小数点数。
|
||||
* @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K.
|
||||
* @example
|
||||
* console.log( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.log( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.log( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
* console.integralLog( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
*/
|
||||
formatSize: function( size, pointLength, units ) {
|
||||
var unit;
|
||||
@@ -540,7 +540,7 @@
|
||||
* Mediator.installTo( obj );
|
||||
*
|
||||
* obj.on( 'testa', function( arg1, arg2 ) {
|
||||
* console.log( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* });
|
||||
*
|
||||
* obj.trigger( 'testa', 'arg1', 'arg2' );
|
||||
@@ -553,7 +553,7 @@
|
||||
* 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。
|
||||
* ```javascript
|
||||
* obj.on( 'all', function( type, arg1, arg2 ) {
|
||||
* console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -2625,8 +2625,8 @@
|
||||
* @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。
|
||||
* @for Uploader
|
||||
* @example
|
||||
* console.log( uploader.getFiles() ); // => all files
|
||||
* console.log( uploader.getFiles('error') ) // => all error files.
|
||||
* console.integralLog( uploader.getFiles() ); // => all files
|
||||
* console.integralLog( uploader.getFiles('error') ) // => all error files.
|
||||
*/
|
||||
getFiles: function() {
|
||||
return this.queue.getFiles.apply( this.queue, arguments );
|
||||
@@ -3853,7 +3853,7 @@
|
||||
uid = parts[ 0 ];
|
||||
type = parts[ 1 ];
|
||||
|
||||
// console.log.apply( console, arguments );
|
||||
// console.integralLog.apply( console, arguments );
|
||||
|
||||
if ( type === 'Ready' && uid === me.uid ) {
|
||||
me.trigger('ready');
|
||||
@@ -3861,7 +3861,7 @@
|
||||
clients[ uid ].trigger( type.toLowerCase(), evt, obj );
|
||||
}
|
||||
|
||||
// Base.log( evt, obj );
|
||||
// Base.integralLog( evt, obj );
|
||||
}
|
||||
|
||||
// flash的接受器。
|
||||
|
||||
@@ -306,15 +306,15 @@
|
||||
* @return {Class} 返回子类。
|
||||
* @example
|
||||
* function Person() {
|
||||
* console.log( 'Super' );
|
||||
* console.integralLog( 'Super' );
|
||||
* }
|
||||
* Person.prototype.hello = function() {
|
||||
* console.log( 'hello' );
|
||||
* console.integralLog( 'hello' );
|
||||
* };
|
||||
*
|
||||
* var Manager = Base.inherits( Person, {
|
||||
* world: function() {
|
||||
* console.log( 'World' );
|
||||
* console.integralLog( 'World' );
|
||||
* }
|
||||
* });
|
||||
*
|
||||
@@ -326,7 +326,7 @@
|
||||
* instance.world(); // => World
|
||||
*
|
||||
* // 子类的__super__属性指向父类
|
||||
* console.log( Manager.__super__ === Person ); // => true
|
||||
* console.integralLog( Manager.__super__ === Person ); // => true
|
||||
*/
|
||||
inherits: function( Super, protos, staticProtos ) {
|
||||
var child;
|
||||
@@ -370,7 +370,7 @@
|
||||
* @method bindFn
|
||||
* @example
|
||||
* var doSomething = function() {
|
||||
* console.log( this.name );
|
||||
* console.integralLog( this.name );
|
||||
* },
|
||||
* obj = {
|
||||
* name: 'Object Name'
|
||||
@@ -383,9 +383,9 @@
|
||||
bindFn: bindFn,
|
||||
|
||||
/**
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。
|
||||
* @grammar Base.log( args... ) => undefined
|
||||
* @method log
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。
|
||||
* @grammar Base.integralLog( args... ) => undefined
|
||||
* @method integralLog
|
||||
*/
|
||||
log: (function() {
|
||||
if ( window.console ) {
|
||||
@@ -420,7 +420,7 @@
|
||||
* @example
|
||||
* function doSomthing() {
|
||||
* var args = Base.slice( arguments, 1 );
|
||||
* console.log( args );
|
||||
* console.integralLog( args );
|
||||
* }
|
||||
*
|
||||
* doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"]
|
||||
@@ -458,12 +458,12 @@
|
||||
* @param {Number} [pointLength=2] 精确到的小数点数。
|
||||
* @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K.
|
||||
* @example
|
||||
* console.log( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.log( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.log( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
* console.integralLog( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
*/
|
||||
formatSize: function( size, pointLength, units ) {
|
||||
var unit;
|
||||
@@ -540,7 +540,7 @@
|
||||
* Mediator.installTo( obj );
|
||||
*
|
||||
* obj.on( 'testa', function( arg1, arg2 ) {
|
||||
* console.log( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* });
|
||||
*
|
||||
* obj.trigger( 'testa', 'arg1', 'arg2' );
|
||||
@@ -553,7 +553,7 @@
|
||||
* 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。
|
||||
* ```javascript
|
||||
* obj.on( 'all', function( type, arg1, arg2 ) {
|
||||
* console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -2819,8 +2819,8 @@
|
||||
* @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。
|
||||
* @for Uploader
|
||||
* @example
|
||||
* console.log( uploader.getFiles() ); // => all files
|
||||
* console.log( uploader.getFiles('error') ) // => all error files.
|
||||
* console.integralLog( uploader.getFiles() ); // => all files
|
||||
* console.integralLog( uploader.getFiles('error') ) // => all error files.
|
||||
*/
|
||||
getFiles: function() {
|
||||
return this.queue.getFiles.apply( this.queue, arguments );
|
||||
@@ -4872,7 +4872,7 @@
|
||||
// i,
|
||||
// b;
|
||||
// if (!length || offset + length > dataView.byteLength) {
|
||||
// Base.log('Invalid Exif data: Invalid thumbnail data.');
|
||||
// Base.integralLog('Invalid Exif data: Invalid thumbnail data.');
|
||||
// return;
|
||||
// }
|
||||
// hexData = [];
|
||||
|
||||
@@ -306,15 +306,15 @@
|
||||
* @return {Class} 返回子类。
|
||||
* @example
|
||||
* function Person() {
|
||||
* console.log( 'Super' );
|
||||
* console.integralLog( 'Super' );
|
||||
* }
|
||||
* Person.prototype.hello = function() {
|
||||
* console.log( 'hello' );
|
||||
* console.integralLog( 'hello' );
|
||||
* };
|
||||
*
|
||||
* var Manager = Base.inherits( Person, {
|
||||
* world: function() {
|
||||
* console.log( 'World' );
|
||||
* console.integralLog( 'World' );
|
||||
* }
|
||||
* });
|
||||
*
|
||||
@@ -326,7 +326,7 @@
|
||||
* instance.world(); // => World
|
||||
*
|
||||
* // 子类的__super__属性指向父类
|
||||
* console.log( Manager.__super__ === Person ); // => true
|
||||
* console.integralLog( Manager.__super__ === Person ); // => true
|
||||
*/
|
||||
inherits: function( Super, protos, staticProtos ) {
|
||||
var child;
|
||||
@@ -370,7 +370,7 @@
|
||||
* @method bindFn
|
||||
* @example
|
||||
* var doSomething = function() {
|
||||
* console.log( this.name );
|
||||
* console.integralLog( this.name );
|
||||
* },
|
||||
* obj = {
|
||||
* name: 'Object Name'
|
||||
@@ -383,9 +383,9 @@
|
||||
bindFn: bindFn,
|
||||
|
||||
/**
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。
|
||||
* @grammar Base.log( args... ) => undefined
|
||||
* @method log
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。
|
||||
* @grammar Base.integralLog( args... ) => undefined
|
||||
* @method integralLog
|
||||
*/
|
||||
log: (function() {
|
||||
if ( window.console ) {
|
||||
@@ -420,7 +420,7 @@
|
||||
* @example
|
||||
* function doSomthing() {
|
||||
* var args = Base.slice( arguments, 1 );
|
||||
* console.log( args );
|
||||
* console.integralLog( args );
|
||||
* }
|
||||
*
|
||||
* doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"]
|
||||
@@ -458,12 +458,12 @@
|
||||
* @param {Number} [pointLength=2] 精确到的小数点数。
|
||||
* @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K.
|
||||
* @example
|
||||
* console.log( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.log( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.log( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
* console.integralLog( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
*/
|
||||
formatSize: function( size, pointLength, units ) {
|
||||
var unit;
|
||||
@@ -540,7 +540,7 @@
|
||||
* Mediator.installTo( obj );
|
||||
*
|
||||
* obj.on( 'testa', function( arg1, arg2 ) {
|
||||
* console.log( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* });
|
||||
*
|
||||
* obj.trigger( 'testa', 'arg1', 'arg2' );
|
||||
@@ -553,7 +553,7 @@
|
||||
* 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。
|
||||
* ```javascript
|
||||
* obj.on( 'all', function( type, arg1, arg2 ) {
|
||||
* console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -2819,8 +2819,8 @@
|
||||
* @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。
|
||||
* @for Uploader
|
||||
* @example
|
||||
* console.log( uploader.getFiles() ); // => all files
|
||||
* console.log( uploader.getFiles('error') ) // => all error files.
|
||||
* console.integralLog( uploader.getFiles() ); // => all files
|
||||
* console.integralLog( uploader.getFiles('error') ) // => all error files.
|
||||
*/
|
||||
getFiles: function() {
|
||||
return this.queue.getFiles.apply( this.queue, arguments );
|
||||
@@ -4872,7 +4872,7 @@
|
||||
// i,
|
||||
// b;
|
||||
// if (!length || offset + length > dataView.byteLength) {
|
||||
// Base.log('Invalid Exif data: Invalid thumbnail data.');
|
||||
// Base.integralLog('Invalid Exif data: Invalid thumbnail data.');
|
||||
// return;
|
||||
// }
|
||||
// hexData = [];
|
||||
@@ -5657,7 +5657,7 @@
|
||||
|
||||
// benchmarking
|
||||
// var duration = new Date().getTime() - time_start;
|
||||
// console.log('Encoding time: '+ currentQuality + 'ms');
|
||||
// console.integralLog('Encoding time: '+ currentQuality + 'ms');
|
||||
//
|
||||
|
||||
return jpegDataUri
|
||||
@@ -5682,7 +5682,7 @@
|
||||
|
||||
initQuantTables(sf);
|
||||
currentQuality = quality;
|
||||
// console.log('Quality set to: '+quality +'%');
|
||||
// console.integralLog('Quality set to: '+quality +'%');
|
||||
}
|
||||
|
||||
function init(){
|
||||
@@ -5696,7 +5696,7 @@
|
||||
|
||||
setQuality(quality);
|
||||
// var duration = new Date().getTime() - time_start;
|
||||
// console.log('Initialization '+ duration + 'ms');
|
||||
// console.integralLog('Initialization '+ duration + 'ms');
|
||||
}
|
||||
|
||||
init();
|
||||
@@ -6399,7 +6399,7 @@
|
||||
uid = parts[ 0 ];
|
||||
type = parts[ 1 ];
|
||||
|
||||
// console.log.apply( console, arguments );
|
||||
// console.integralLog.apply( console, arguments );
|
||||
|
||||
if ( type === 'Ready' && uid === me.uid ) {
|
||||
me.trigger('ready');
|
||||
@@ -6407,7 +6407,7 @@
|
||||
clients[ uid ].trigger( type.toLowerCase(), evt, obj );
|
||||
}
|
||||
|
||||
// Base.log( evt, obj );
|
||||
// Base.integralLog( evt, obj );
|
||||
}
|
||||
|
||||
// flash的接受器。
|
||||
|
||||
@@ -306,15 +306,15 @@
|
||||
* @return {Class} 返回子类。
|
||||
* @example
|
||||
* function Person() {
|
||||
* console.log( 'Super' );
|
||||
* console.integralLog( 'Super' );
|
||||
* }
|
||||
* Person.prototype.hello = function() {
|
||||
* console.log( 'hello' );
|
||||
* console.integralLog( 'hello' );
|
||||
* };
|
||||
*
|
||||
* var Manager = Base.inherits( Person, {
|
||||
* world: function() {
|
||||
* console.log( 'World' );
|
||||
* console.integralLog( 'World' );
|
||||
* }
|
||||
* });
|
||||
*
|
||||
@@ -326,7 +326,7 @@
|
||||
* instance.world(); // => World
|
||||
*
|
||||
* // 子类的__super__属性指向父类
|
||||
* console.log( Manager.__super__ === Person ); // => true
|
||||
* console.integralLog( Manager.__super__ === Person ); // => true
|
||||
*/
|
||||
inherits: function( Super, protos, staticProtos ) {
|
||||
var child;
|
||||
@@ -370,7 +370,7 @@
|
||||
* @method bindFn
|
||||
* @example
|
||||
* var doSomething = function() {
|
||||
* console.log( this.name );
|
||||
* console.integralLog( this.name );
|
||||
* },
|
||||
* obj = {
|
||||
* name: 'Object Name'
|
||||
@@ -383,9 +383,9 @@
|
||||
bindFn: bindFn,
|
||||
|
||||
/**
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。
|
||||
* @grammar Base.log( args... ) => undefined
|
||||
* @method log
|
||||
* 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。
|
||||
* @grammar Base.integralLog( args... ) => undefined
|
||||
* @method integralLog
|
||||
*/
|
||||
log: (function() {
|
||||
if ( window.console ) {
|
||||
@@ -420,7 +420,7 @@
|
||||
* @example
|
||||
* function doSomthing() {
|
||||
* var args = Base.slice( arguments, 1 );
|
||||
* console.log( args );
|
||||
* console.integralLog( args );
|
||||
* }
|
||||
*
|
||||
* doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"]
|
||||
@@ -458,12 +458,12 @@
|
||||
* @param {Number} [pointLength=2] 精确到的小数点数。
|
||||
* @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K.
|
||||
* @example
|
||||
* console.log( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.log( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.log( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
* console.integralLog( Base.formatSize( 100 ) ); // => 100B
|
||||
* console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K
|
||||
* console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G
|
||||
* console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB
|
||||
*/
|
||||
formatSize: function( size, pointLength, units ) {
|
||||
var unit;
|
||||
@@ -540,7 +540,7 @@
|
||||
* Mediator.installTo( obj );
|
||||
*
|
||||
* obj.on( 'testa', function( arg1, arg2 ) {
|
||||
* console.log( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2'
|
||||
* });
|
||||
*
|
||||
* obj.trigger( 'testa', 'arg1', 'arg2' );
|
||||
@@ -553,7 +553,7 @@
|
||||
* 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。
|
||||
* ```javascript
|
||||
* obj.on( 'all', function( type, arg1, arg2 ) {
|
||||
* console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2'
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -2453,8 +2453,8 @@
|
||||
* @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。
|
||||
* @for Uploader
|
||||
* @example
|
||||
* console.log( uploader.getFiles() ); // => all files
|
||||
* console.log( uploader.getFiles('error') ) // => all error files.
|
||||
* console.integralLog( uploader.getFiles() ); // => all files
|
||||
* console.integralLog( uploader.getFiles('error') ) // => all error files.
|
||||
*/
|
||||
getFiles: function() {
|
||||
return this.queue.getFiles.apply( this.queue, arguments );
|
||||
@@ -4291,7 +4291,7 @@
|
||||
uid = parts[ 0 ];
|
||||
type = parts[ 1 ];
|
||||
|
||||
// console.log.apply( console, arguments );
|
||||
// console.integralLog.apply( console, arguments );
|
||||
|
||||
if ( type === 'Ready' && uid === me.uid ) {
|
||||
me.trigger('ready');
|
||||
@@ -4299,7 +4299,7 @@
|
||||
clients[ uid ].trigger( type.toLowerCase(), evt, obj );
|
||||
}
|
||||
|
||||
// Base.log( evt, obj );
|
||||
// Base.integralLog( evt, obj );
|
||||
}
|
||||
|
||||
// flash的接受器。
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user