From 44d1eab55f1442b0120aa98d5fcbf91762541125 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Sun, 26 Jan 2014 13:31:44 -0600 Subject: [PATCH] Documentation: Add missing semicolons in examples, and remove an extraneous one --- index.html | 6 +++--- select-2.1.html | 4 ++-- select2-latest.html | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index bd48c6a5..f0b83988 100644 --- a/index.html +++ b/index.html @@ -76,7 +76,7 @@ $("#e5").select2({ else if (movie.synopsis !== undefined) { markup += "
" + movie.synopsis + "
"; } - markup += "" + markup += ""; return markup; } @@ -174,7 +174,7 @@ $("#e10").select2({ }); var data=[{id:0,tag:'enhancement'},{id:1,tag:'bug'},{id:2,tag:'duplicate'},{id:3,tag:'invalid'},{id:4,tag:'wontfix'}]; -function format(item) { return item.tag; }; +function format(item) { return item.tag; } $("#e10_2").select2({ data:{ results: data, text: 'tag' }, @@ -250,7 +250,7 @@ $("#e10_4").select2({ var markup=template .replace(/\$url/g, this.html_url) .replace(/\$num/g, this.number) - .replace(/\$title/g, this.title.replace("<", "<")) + .replace(/\$title/g, this.title.replace("<", "<")); list.append(markup); }); diff --git a/select-2.1.html b/select-2.1.html index e264f8b8..8016b4a4 100755 --- a/select-2.1.html +++ b/select-2.1.html @@ -66,7 +66,7 @@ version: 2.1 else if (movie.synopsis !== undefined) { markup += "
" + movie.synopsis + "
"; } - markup += "" + markup += ""; return markup; } @@ -146,7 +146,7 @@ version: 2.1 }); var data=[{id:0,tag:'enhancement'},{id:1,tag:'bug'},{id:2,tag:'duplicate'},{id:3,tag:'invalid'},{id:4,tag:'wontfix'}]; - function format(item) { return item.tag; }; + function format(item) { return item.tag; } $("#e10_2").select2({ data:{ results: data, text: 'tag' }, diff --git a/select2-latest.html b/select2-latest.html index f569f211..54ff23bf 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -76,7 +76,7 @@ $("#e5").select2({ else if (movie.synopsis !== undefined) { markup += "
" + movie.synopsis + "
"; } - markup += "" + markup += ""; return markup; } @@ -174,7 +174,7 @@ $("#e10").select2({ }); var data=[{id:0,tag:'enhancement'},{id:1,tag:'bug'},{id:2,tag:'duplicate'},{id:3,tag:'invalid'},{id:4,tag:'wontfix'}]; -function format(item) { return item.tag; }; +function format(item) { return item.tag; } $("#e10_2").select2({ data:{ results: data, text: 'tag' }, @@ -263,7 +263,7 @@ $("#e10_4").select2({ var markup=template .replace(/\$url/g, this.html_url) .replace(/\$num/g, this.number) - .replace(/\$title/g, this.title.replace("<", "<")) + .replace(/\$title/g, this.title.replace("<", "<")); list.append(markup); });