Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSWeb
Commits
eeb24cb5
Commit
eeb24cb5
authored
1 year ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Include empty strings in fn isEmpty(val)
parent
11c7bfc8
Branches
Branches containing commit
No related tags found
2 merge requests
!17
Saddlegallmidge form idec 372
,
!12
feat: Add test page (spatial) with mapserver layer in openlayers map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ipmd/static/ipmd/js/ipmdlib.js
+2
-2
2 additions, 2 deletions
ipmd/static/ipmd/js/ipmdlib.js
with
2 additions
and
2 deletions
ipmd/static/ipmd/js/ipmdlib.js
+
2
−
2
View file @
eeb24cb5
...
...
@@ -521,13 +521,13 @@ function getUnix(aDate)
}
/**
* Saves a bit of typing. Currently checks if the val is either undefined or null
* Saves a bit of typing. Currently checks if the val is either undefined or null
, and if a string == ""
* @param {Object} val
* @returns {Boolean} true if the value is considered empty
*/
function
isEmpty
(
val
)
{
return
val
===
undefined
||
val
===
null
;
return
val
===
undefined
||
val
===
null
||
(
typeof
val
===
"
string
"
&&
val
.
trim
()
==
""
)
;
}
// Keeping track of maps
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment