1
0
mirror of synced 2025-03-12 15:46:09 +03:00

Documentation: Add missing semicolons in examples, and remove an extraneous one

This commit is contained in:
Eric Dahl 2014-01-26 13:31:44 -06:00
parent fb458d2381
commit 44d1eab55f
3 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ $("#e5").select2({
else if (movie.synopsis !== undefined) {
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
}
markup += "</td></tr></table>"
markup += "</td></tr></table>";
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("<", "&lt;"))
.replace(/\$title/g, this.title.replace("<", "&lt;"));
list.append(markup);
});

View File

@ -66,7 +66,7 @@ version: 2.1
else if (movie.synopsis !== undefined) {
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
}
markup += "</td></tr></table>"
markup += "</td></tr></table>";
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' },

View File

@ -76,7 +76,7 @@ $("#e5").select2({
else if (movie.synopsis !== undefined) {
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
}
markup += "</td></tr></table>"
markup += "</td></tr></table>";
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("<", "&lt;"))
.replace(/\$title/g, this.title.replace("<", "&lt;"));
list.append(markup);
});