Skip to content
Snippets Groups Projects
Commit 5e7a7b3f authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Shorten optional text-argument processing

parent 24eb4154
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment