diff --git a/src/lib/dnd.js b/src/lib/dnd.js index 512422155..d0b153635 100644 --- a/src/lib/dnd.js +++ b/src/lib/dnd.js @@ -5,7 +5,7 @@ define([ '../base', '../mediator', '../runtime/client' -], function( Base, Mediator, RuntimeClent ) { +], function( Base, Mediator, RuntimeClient ) { var $ = Base.$; @@ -18,7 +18,7 @@ define([ return; } - RuntimeClent.call( this, 'DragAndDrop' ); + RuntimeClient.call( this, 'DragAndDrop', true );//与FilePicker一样为一种文件选择器,不能重用 } DragAndDrop.options = { @@ -26,7 +26,7 @@ define([ disableGlobalDnd: false }; - Base.inherits( RuntimeClent, { + Base.inherits( RuntimeClient, { constructor: DragAndDrop, init: function() { @@ -42,4 +42,4 @@ define([ Mediator.installTo( DragAndDrop.prototype ); return DragAndDrop; -}); \ No newline at end of file +}); diff --git a/src/lib/filepaste.js b/src/lib/filepaste.js index c34bcad7c..7c2b2c395 100644 --- a/src/lib/filepaste.js +++ b/src/lib/filepaste.js @@ -5,17 +5,17 @@ define([ '../base', '../mediator', '../runtime/client' -], function( Base, Mediator, RuntimeClent ) { +], function( Base, Mediator, RuntimeClient ) { var $ = Base.$; function FilePaste( opts ) { opts = this.options = $.extend({}, opts ); opts.container = $( opts.container || document.body ); - RuntimeClent.call( this, 'FilePaste' ); + RuntimeClient.call( this, 'FilePaste', true );//与FilePicker一样为一种文件选择器,不能重用 } - Base.inherits( RuntimeClent, { + Base.inherits( RuntimeClient, { constructor: FilePaste, init: function() { @@ -31,4 +31,4 @@ define([ Mediator.installTo( FilePaste.prototype ); return FilePaste; -}); \ No newline at end of file +});