From 502ac7ee4d13669e644b9181f1e014ce0ea1f089 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 28 Sep 2017 17:25:28 +0300 Subject: Lint docs js too and use `strict consistently. (#24160) --- docs/4.0/examples/offcanvas/offcanvas.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/4.0/examples/offcanvas') diff --git a/docs/4.0/examples/offcanvas/offcanvas.js b/docs/4.0/examples/offcanvas/offcanvas.js index a89262a26..a41847081 100644 --- a/docs/4.0/examples/offcanvas/offcanvas.js +++ b/docs/4.0/examples/offcanvas/offcanvas.js @@ -1,5 +1,7 @@ -$(document).ready(function () { +$(function () { + 'use strict' + $('[data-toggle="offcanvas"]').on('click', function () { $('.row-offcanvas').toggleClass('active') - }); -}); + }) +}) -- cgit v1.2.3