Skip to content

Commit

Permalink
use Array.isArray() consistently instead of $.isArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
ricordisamoa committed Feb 11, 2016
1 parent 85e4ca7 commit ca61910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ContribsList = function () {
method,
args = Array.prototype.slice.call( arguments );

if ( args.length === 1 && $.isArray( args[ 0 ] ) ) {
if ( args.length === 1 && Array.isArray( args[ 0 ] ) ) {
list = args[ 0 ];
} else {
list = Object.create( Array.prototype );
Expand Down Expand Up @@ -377,7 +377,7 @@ DataGetter.prototype = {
.then( function ( data ) {
var dbNames = {};
$.each( data.sitematrix, function () {
$.each( this.site || ( $.isArray( this ) ? this : [] ), function () {
$.each( this.site || ( Array.isArray( this ) ? this : [] ), function () {
if ( this.dbname && this.url && this.private === undefined && this.fishbowl === undefined ) {
dbNames[ this.dbname ] = this.url.replace( /^http\:\/\//, '//' );
}
Expand Down

0 comments on commit ca61910

Please sign in to comment.