Skip to content

Commit 873d3b9

Browse files
Updated demo source code view function. Data- attribute value is a string instead of boolean.
1 parent 4ccec3d commit 873d3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/demos/_assets/js/jqm-demos.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ $.fn.viewSourceCode = function() {
9797
if ( $( this ).is( "[data-demo-js]" ) ) {
9898
var scriptId = $( this ).attr( "data-demo-js" );
9999

100-
if ( scriptId === true ) {
100+
if ( scriptId === "true" ) {
101101
scriptId = "";
102102
}
103103
js = $( "<div></div>" ).append( $( "head" ).find( "script" + scriptId ).contents().clone() ).html();
@@ -110,7 +110,7 @@ $.fn.viewSourceCode = function() {
110110
if ( $( this ).is( "[data-demo-css]" ) ) {
111111
var styleId = $( this ).attr( "data-demo-css" );
112112

113-
if ( styleId === true ) {
113+
if ( styleId === "true" ) {
114114
styleId = "";
115115
}
116116
css = $( "<div></div>" ).append( $( "head" ).find( "style" + styleId ).contents().clone() ).html();

0 commit comments

Comments
 (0)