From 78e018ae53e1b0647de298071e022797bfd14581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= <31075951+laozhoubuluo@users.noreply.github.com> Date: Tue, 10 Dec 2019 12:44:49 +0800 Subject: [PATCH 1/2] Fix Type Reuse and Typo --- src/lib/filepaste.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +}); From 6e7c26f77bfc213a423b67fb772f12b4e36c102f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= <31075951+laozhoubuluo@users.noreply.github.com> Date: Tue, 10 Dec 2019 12:49:35 +0800 Subject: [PATCH 2/2] Fix Type Reuse and Typo --- src/lib/dnd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +});