File "PostStatementCommentUnitTest.1.js"
Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.1.js
File size: 579 bytes
MIME-type: text/plain
Charset: utf-8
function test(id, buttons) // cool function
{
alert('hello');
alert('hello again'); // And again.
// Valid comment.
}//end test()
var good = true; // Indeed.
mig.Gallery.prototype = {
init: function(cb)
{
},//end init()
imageClicked: function(id)
{
}//end imageClicked()
};
dfx.getIframeDocument = function(iframe)
{
return doc;
};//end dfx.getIframeDocument()
// Verify that multi-line control structure with comments and annotations are left alone.
if (condition // comment
&& anotherCondition) {
condition = true;
}