Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
Passes jslint validation and displays an empty string for null or und…
Browse files Browse the repository at this point in the history
…efined values.
  • Loading branch information
Caleb Wright committed Mar 19, 2010
1 parent 72098e9 commit 983b77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.nano.js
Expand Up @@ -5,7 +5,7 @@
return template.replace(/\{([\w\.]*)\}/g, function (str, key) {
var keys = key.split("."), value = data[keys.shift()];
$.each(keys, function () { value = value[this]; });
return (value === null || value === undefined) ? "" : value;
return (value === null || value === undefined) ? "" : value;
});
};
})(jQuery);

0 comments on commit 983b77d

Please sign in to comment.