Documentation: Add missing semicolons in examples, and remove an extraneous one
This commit is contained in:
parent
fb458d2381
commit
44d1eab55f
@ -76,7 +76,7 @@ $("#e5").select2({
|
|||||||
else if (movie.synopsis !== undefined) {
|
else if (movie.synopsis !== undefined) {
|
||||||
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
||||||
}
|
}
|
||||||
markup += "</td></tr></table>"
|
markup += "</td></tr></table>";
|
||||||
return 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'}];
|
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({
|
$("#e10_2").select2({
|
||||||
data:{ results: data, text: 'tag' },
|
data:{ results: data, text: 'tag' },
|
||||||
@ -250,7 +250,7 @@ $("#e10_4").select2({
|
|||||||
var markup=template
|
var markup=template
|
||||||
.replace(/\$url/g, this.html_url)
|
.replace(/\$url/g, this.html_url)
|
||||||
.replace(/\$num/g, this.number)
|
.replace(/\$num/g, this.number)
|
||||||
.replace(/\$title/g, this.title.replace("<", "<"))
|
.replace(/\$title/g, this.title.replace("<", "<"));
|
||||||
list.append(markup);
|
list.append(markup);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ version: 2.1
|
|||||||
else if (movie.synopsis !== undefined) {
|
else if (movie.synopsis !== undefined) {
|
||||||
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
||||||
}
|
}
|
||||||
markup += "</td></tr></table>"
|
markup += "</td></tr></table>";
|
||||||
return 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'}];
|
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({
|
$("#e10_2").select2({
|
||||||
data:{ results: data, text: 'tag' },
|
data:{ results: data, text: 'tag' },
|
||||||
|
@ -76,7 +76,7 @@ $("#e5").select2({
|
|||||||
else if (movie.synopsis !== undefined) {
|
else if (movie.synopsis !== undefined) {
|
||||||
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
markup += "<div class='movie-synopsis'>" + movie.synopsis + "</div>";
|
||||||
}
|
}
|
||||||
markup += "</td></tr></table>"
|
markup += "</td></tr></table>";
|
||||||
return 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'}];
|
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({
|
$("#e10_2").select2({
|
||||||
data:{ results: data, text: 'tag' },
|
data:{ results: data, text: 'tag' },
|
||||||
@ -263,7 +263,7 @@ $("#e10_4").select2({
|
|||||||
var markup=template
|
var markup=template
|
||||||
.replace(/\$url/g, this.html_url)
|
.replace(/\$url/g, this.html_url)
|
||||||
.replace(/\$num/g, this.number)
|
.replace(/\$num/g, this.number)
|
||||||
.replace(/\$title/g, this.title.replace("<", "<"))
|
.replace(/\$title/g, this.title.replace("<", "<"));
|
||||||
list.append(markup);
|
list.append(markup);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user