Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 4ea7e26

Browse files
authored
Merge pull request #1894 from cormacmccarthy/GH1891---upgrade-to-qunit-2-to-support-mac-os-sierra
updates to qunit 2
2 parents 35726fd + 57ce80b commit 4ea7e26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4431
-4537
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- 5.8
3+
- 6.8.1
44
sudo: false
55
install:
66
- time npm install

Gruntfile.js

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*jshint expr:true*/
2-
/*global module:false, process:false*/
3-
module.exports = function (grunt) {
1+
/* jshint expr:true*/
2+
/* global module:false, process:false*/
3+
module.exports = function gruntFile (grunt) {
44
'use strict';
55

66
/*
@@ -16,14 +16,14 @@ module.exports = function (grunt) {
1616
}
1717

1818
// use --no-livereload to disable livereload. Helpful to 'serve' multiple projects
19-
var isLivereloadEnabled = (typeof grunt.option('livereload') !== 'undefined') ? grunt.option('livereload') : true;
19+
// var isLivereloadEnabled = (typeof grunt.option('livereload') !== 'undefined') ? grunt.option('livereload') : true;
2020

2121
// external libraries
22-
var semver = require('semver');
23-
var packageVersion = getPackage().version;
24-
var fs = require('fs');
22+
// var semver = require('semver');
23+
// var packageVersion = getPackage().version;
24+
// var fs = require('fs');
2525
var path = require('path');
26-
var commonJSBundledReferenceModule = require('./grunt/other/commonjs-reference-module.js');
26+
// var commonJSBundledReferenceModule = require('./grunt/other/commonjs-reference-module.js');
2727

2828
// variables used in shared variables below
2929
var connectTestServerOptionsPort = 9000;
@@ -57,22 +57,19 @@ module.exports = function (grunt) {
5757
cdnLoginFile: grunt.file.exists('FUEL_CDN.yml') ? grunt.file.readYAML('FUEL_CDN.yml') : undefined,
5858
sauceUser: process.env.SAUCE_USERNAME || 'fuelux',
5959
// TEST URLS
60-
allTestUrls: ['2.1.0', '1.11.0', '1.9.1', 'browserGlobals', 'noMoment', 'codeCoverage' ].map(function (type) {
60+
allTestUrls: ['2.1.0', '1.11.0', '1.9.1', 'browserGlobals', 'noMoment', 'codeCoverage' ].map(function allTestUrls (type) {
6161
if (type === 'browserGlobals') {
6262
return 'http://localhost:' + connectTestServerOptionsPort + '/test/browser-globals.html';
63-
}
64-
else if (type === 'codeCoverage') {
63+
} else if (type === 'codeCoverage') {
6564
return 'http://localhost:' + connectTestServerOptionsPort + '/test/?coverage=true';
66-
}
67-
else if (type === 'noMoment') {
65+
} else if (type === 'noMoment') {
6866
return 'http://localhost:' + connectTestServerOptionsPort + '/test/?no-moment=true';
6967
}
70-
else {
71-
// test dist with multiple jQuery versions
72-
return 'http://localhost:' + connectTestServerOptionsPort + '/test/?testdist=true';
73-
}
68+
69+
// test dist with multiple jQuery versions
70+
return 'http://localhost:' + connectTestServerOptionsPort + '/test/?testdist=true';
7471
}),
75-
connectTestServerOptionsPort: connectTestServerOptionsPort,
72+
connectTestServerOptionsPort: connectTestServerOptionsPort
7673
}
7774
});
7875

@@ -81,5 +78,4 @@ module.exports = function (grunt) {
8178

8279
// load custom build, release, serve, and test tasks from the folder specified
8380
grunt.loadTasks('./grunt/tasks');
84-
85-
};
81+
};

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devDependencies": {
2626
"jquery": null,
2727
"jquery-1.9.1": "jquery#1.9.1",
28-
"qunit": "1.x",
28+
"qunit": "2.x",
2929
"requirejs-text": "2.x",
3030
"underscore": "1.x",
3131
"blanket": "1.x",

dist/css/fuelux.css

Lines changed: 17 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/fuelux.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/fuelux.min.css

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fuelux.zip

1.62 KB
Binary file not shown.

dist/js/fuelux.js

Lines changed: 18 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*!
2-
* Fuel UX v3.15.8
2+
* Fuel UX EDGE - Built 2016/10/28, 5:23:06 PM
3+
* Previous release: v3.15.8
34
* Copyright 2012-2016 ExactTarget
45
* Licensed under the BSD-3-Clause license (https://github.com/ExactTarget/fuelux/blob/master/LICENSE)
56
*/
@@ -1552,31 +1553,13 @@
15521553
var Loader = function( element, options ) {
15531554
this.$element = $( element );
15541555
this.options = $.extend( {}, $.fn.loader.defaults, options );
1555-
1556-
this.begin = ( this.$element.is( '[data-begin]' ) ) ? parseInt( this.$element.attr( 'data-begin' ), 10 ) : 1;
1557-
this.delay = ( this.$element.is( '[data-delay]' ) ) ? parseFloat( this.$element.attr( 'data-delay' ) ) : 150;
1558-
this.end = ( this.$element.is( '[data-end]' ) ) ? parseInt( this.$element.attr( 'data-end' ), 10 ) : 8;
1559-
this.frame = ( this.$element.is( '[data-frame]' ) ) ? parseInt( this.$element.attr( 'data-frame' ), 10 ) : this.begin;
1560-
this.isIElt9 = false;
1561-
this.timeout = {};
1562-
1563-
var ieVer = this.msieVersion();
1564-
if ( ieVer !== false && ieVer < 9 ) {
1565-
this.$element.addClass( 'iefix' );
1566-
this.isIElt9 = true;
1567-
}
1568-
1569-
this.$element.attr( 'data-frame', this.frame + '' );
1570-
this.play();
15711556
};
15721557

15731558
Loader.prototype = {
15741559

15751560
constructor: Loader,
15761561

15771562
destroy: function() {
1578-
this.pause();
1579-
15801563
this.$element.remove();
15811564
// any external bindings
15821565
// [none]
@@ -1586,60 +1569,19 @@
15861569
return this.$element[ 0 ].outerHTML;
15871570
},
15881571

1589-
ieRepaint: function() {
1590-
if ( this.isIElt9 ) {
1591-
this.$element.addClass( 'iefix_repaint' ).removeClass( 'iefix_repaint' );
1592-
}
1593-
},
1572+
ieRepaint: function() {},
15941573

1595-
msieVersion: function() {
1596-
var ua = window.navigator.userAgent;
1597-
var msie = ua.indexOf( 'MSIE ' );
1598-
if ( msie > 0 ) {
1599-
return parseInt( ua.substring( msie + 5, ua.indexOf( ".", msie ) ), 10 );
1600-
} else {
1601-
return false;
1602-
}
1603-
},
1574+
msieVersion: function() {},
16041575

1605-
next: function() {
1606-
this.frame++;
1607-
if ( this.frame > this.end ) {
1608-
this.frame = this.begin;
1609-
}
1576+
next: function() {},
16101577

1611-
this.$element.attr( 'data-frame', this.frame + '' );
1612-
this.ieRepaint();
1613-
},
1578+
pause: function() {},
16141579

1615-
pause: function() {
1616-
clearTimeout( this.timeout );
1617-
},
1580+
play: function() {},
16181581

1619-
play: function() {
1620-
var self = this;
1621-
clearTimeout( this.timeout );
1622-
this.timeout = setTimeout( function() {
1623-
self.next();
1624-
self.play();
1625-
}, this.delay );
1626-
},
1627-
1628-
previous: function() {
1629-
this.frame--;
1630-
if ( this.frame < this.begin ) {
1631-
this.frame = this.end;
1632-
}
1582+
previous: function() {},
16331583

1634-
this.$element.attr( 'data-frame', this.frame + '' );
1635-
this.ieRepaint();
1636-
},
1637-
1638-
reset: function() {
1639-
this.frame = this.begin;
1640-
this.$element.attr( 'data-frame', this.frame + '' );
1641-
this.ieRepaint();
1642-
}
1584+
reset: function() {}
16431585
};
16441586

16451587
// LOADER PLUGIN DEFINITION
@@ -3840,8 +3782,6 @@
38403782
// WIZARD CONSTRUCTOR AND PROTOTYPE
38413783

38423784
var Wizard = function( element, options ) {
3843-
var kids;
3844-
38453785
this.$element = $( element );
38463786
this.options = $.extend( {}, $.fn.wizard.defaults, options );
38473787
this.options.disablePreviousStep = ( this.$element.attr( 'data-restrict' ) === 'previous' ) ? true : this.options.disablePreviousStep;
@@ -3850,22 +3790,25 @@
38503790
this.$prevBtn = this.$element.find( 'button.btn-prev' );
38513791
this.$nextBtn = this.$element.find( 'button.btn-next' );
38523792

3793+
var kids = this.$nextBtn.children().detach();
3794+
this.nextText = $.trim( this.$nextBtn.text() );
3795+
this.$nextBtn.append( kids );
3796+
3797+
var steps = this.$element.children( '.steps-container' );
38533798
// maintains backwards compatibility with < 3.8, will be removed in the future
3854-
if ( this.$element.children( '.steps-container' ).length === 0 ) {
3799+
if ( steps.length === 0 ) {
3800+
steps = this.$element;
38553801
this.$element.addClass( 'no-steps-container' );
38563802
if ( window && window.console && window.console.warn ) {
38573803
window.console.warn( 'please update your wizard markup to include ".steps-container" as seen in http://getfuelux.com/javascript.html#wizard-usage-markup' );
38583804
}
38593805
}
3860-
3861-
kids = this.$nextBtn.children().detach();
3862-
this.nextText = $.trim( this.$nextBtn.text() );
3863-
this.$nextBtn.append( kids );
3806+
steps = steps.find( '.steps' );
38643807

38653808
// handle events
38663809
this.$prevBtn.on( 'click.fu.wizard', $.proxy( this.previous, this ) );
38673810
this.$nextBtn.on( 'click.fu.wizard', $.proxy( this.next, this ) );
3868-
this.$element.on( 'click.fu.wizard', 'li.complete', $.proxy( this.stepclicked, this ) );
3811+
steps.on( 'click.fu.wizard', 'li.complete', $.proxy( this.stepclicked, this ) );
38693812

38703813
this.selectedItem( this.options.selectedItem );
38713814

dist/js/fuelux.min.js

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ require('../../js/repeater');
2121
require('../../js/repeater-list');
2222
require('../../js/repeater-thumbnail');
2323
require('../../js/scheduler');
24-
require('../../js/picker');
24+
require('../../js/picker');

0 commit comments

Comments
 (0)