Skip to content

Commit 64ad28e

Browse files
committed
Moved strict mode statements from function level to file level
1 parent 271bce2 commit 64ad28e

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"singleGroups": true,
1414
"undef": true,
1515
"unused": true,
16-
"strict": true,
16+
"strict": "global",
1717

1818
"node": true
1919
}

test/.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"singleGroups": true,
1313
"undef": true,
1414
"unused": true,
15-
"strict": true,
15+
"strict": "global",
1616

1717
"browser": true,
1818
"jquery": true,

test/amd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
require.config({
24
paths: {
35
jquery: 'https://code.jquery.com/jquery-3.2.1',
@@ -7,8 +9,6 @@ require.config({
79
});
810

911
require([ 'jquery', 'qunit', 'jquery.powertip' ], function($, QUnit, powerTip) {
10-
'use strict';
11-
1212
QUnit.start();
1313

1414
QUnit.module('AMD');

test/browserify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(function runTests() {
2-
'use strict';
1+
'use strict';
32

3+
(function runTests() {
44
var QUnit = require('qunitjs'),
55
$ = require('jquery'),
66
powerTip = require('./../dist/jquery.powertip.js');

test/tests-edge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
// Open on load
55
$('#open-on-load input').powerTip({ placement: 'ne' }).powerTip('show');
66

test/unit/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
QUnit.module('PowerTip Core');
55

66
QUnit.test('powerTip defined', function(assert) {

test/unit/csscoordinates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
QUnit.module('CSS Coordinates');
55

66
QUnit.test('expose properties', function(assert) {

test/unit/displaycontroller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
QUnit.module('Display Controller');
55

66
QUnit.test('expose methods', function(assert) {

test/unit/placementcalculator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
QUnit.module('Placement Calculator');
55

66
QUnit.test('expose methods', function(assert) {

test/unit/tooltipcontroller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$(function() {
2-
'use strict';
1+
'use strict';
32

3+
$(function() {
44
// set of default options with zero fade time for faster testing
55
var zeroTimeOpts = $.extend({}, $.fn.powerTip.defaults, { fadeInTime: 0, fadeOutTime: 0 });
66

0 commit comments

Comments
 (0)