[Pkg-javascript-commits] [backbone] 08/34: optional values in the template.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:58:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.2.0
in repository backbone.
commit 4311d58ca9ebcabbe1daf05f107c5ef95b9647aa
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Sun Oct 17 10:01:01 2010 -0400
optional values in the template.
---
demos/gist.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/demos/gist.html b/demos/gist.html
index 597a439..9fae274 100644
--- a/demos/gist.html
+++ b/demos/gist.html
@@ -19,8 +19,8 @@
<script id="accountTemplate" type="text/x-jquery-tmpl">
<div class="account">
<div class="name">${ account.get("name") }</div>
- <div class="location">${ account.get("location") }</div>
- <div class="blog">${ account.get("blog") }</div>
+ <div class="location">${ account.get("location") || "" }</div>
+ <div class="blog">${ account.get("blog") || "" }</div>
</div>
</script>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list