summaryrefslogtreecommitdiffstats
path: root/core/js/placeholder.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/placeholder.js')
-rw-r--r--core/js/placeholder.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/js/placeholder.js b/core/js/placeholder.js
index 3c7b11ef468..ee2a8ce84c4 100644
--- a/core/js/placeholder.js
+++ b/core/js/placeholder.js
@@ -48,9 +48,8 @@
(function ($) {
$.fn.placeholder = function(seed, text) {
- if (typeof(text) === "undefined") {
- text = seed;
- }
+ // set optional argument "text" to value of "seed" if undefined
+ text = text || seed;
var hash = md5(seed),
maxRange = parseInt('ffffffffffffffffffffffffffffffff', 16),