From af7a0067f52ba16c33af18f65838e9b8b90f4822 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 1 Dec 2020 16:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=90=88=E9=80=89?= =?UTF-8?q?=E4=BA=BA=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_Selector/MultipleSelector.js | 5 +++-- package.json | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/o2web/source/x_component_Selector/MultipleSelector.js b/o2web/source/x_component_Selector/MultipleSelector.js index d6b219d425..39a8096b4d 100644 --- a/o2web/source/x_component_Selector/MultipleSelector.js +++ b/o2web/source/x_component_Selector/MultipleSelector.js @@ -649,9 +649,10 @@ MWF.xApplication.Selector.MultipleSelector = new Class({ }, getValueByType : function( values, type ){ var result = []; - values = typeOf( values == "array" ) ? values : [values]; - var types = typeOf( type == "array" ) ? type : [type]; + values = typeOf(values) == "array" ? values : [values]; + var types = typeOf(type)== "array" ? type : [type]; values.each( function( data ){ + if( !data )return; if( typeOf( data ) == "string" ){ var dn = data; }else{ diff --git a/package.json b/package.json index e7231bcc55..050597b5b6 100644 --- a/package.json +++ b/package.json @@ -56,21 +56,21 @@ "fast-glob": "^3.2.2", "gulp": "^4.0.2", "gulp-changed": "^3.2.0", + "gulp-concat": "^2.6.1", "gulp-deleted": "^1.0.0", "gulp-if": "^2.0.2", "gulp-logger": "0.0.2", "gulp-rename": "^1.4.0", "gulp-shell": "^0.8.0", + "gulp-sourcemaps": "^3.0.0", "gulp-tm-asset-rev": "0.0.16", "gulp-tm-uglify": "3.0.1", "gulp-uglify-es": "^2.0.0", "gulp-util": "^3.0.8", - "gulp-concat": "^2.6.1", "minimist": "^1.2.0", "progress-stream": "^2.0.0", "request": "^2.88.2", "single-line-log": "^1.1.2", - "targz": "^1.0.1", - "gulp-sourcemaps": "^3.0.0" + "targz": "^1.0.1" } } -- GitLab