Skip to content

Commit

Permalink
Remove console.log; fix jslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenapples committed Aug 24, 2017
1 parent 14c8ed7 commit c992553
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion js-tests/build/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ Shortcode = Backbone.Model.extend({

this.get( 'attrs' ).each( function( attr ) {

console.log( attr.get('attr'), attr.get('value') );
// Skip empty attributes.
if ( ! attr.get( 'value' ) || attr.get( 'value' ).length < 1 ) {
return;
Expand Down
4 changes: 1 addition & 3 deletions js/build/shortcode-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ Shortcode = Backbone.Model.extend({

this.get( 'attrs' ).each( function( attr ) {

console.log( attr.get('attr'), attr.get('value') );
// Skip empty attributes.
if ( ! attr.get( 'value' ) || attr.get( 'value' ).length < 1 ) {
return;
Expand Down Expand Up @@ -1755,7 +1754,7 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
var _selected = $( e.currentTarget ).val();

// Empty fields will have null values. We don't want to coerce that to the string "null".
if ( _selected == null ) {
if ( _selected === null ) {
_selected = '';
}

Expand All @@ -1764,7 +1763,6 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
_selected = _selected.join( ',' );
}


this.setValue( String( _selected ) );
this.triggerCallbacks();
},
Expand Down
1 change: 0 additions & 1 deletion js/src/models/shortcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ Shortcode = Backbone.Model.extend({

this.get( 'attrs' ).each( function( attr ) {

console.log( attr.get('attr'), attr.get('value') );
// Skip empty attributes.
if ( ! attr.get( 'value' ) || attr.get( 'value' ).length < 1 ) {
return;
Expand Down
3 changes: 1 addition & 2 deletions js/src/views/select2-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
var _selected = $( e.currentTarget ).val();

// Empty fields will have null values. We don't want to coerce that to the string "null".
if ( _selected == null ) {
if ( _selected === null ) {
_selected = '';
}

Expand All @@ -30,7 +30,6 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
_selected = _selected.join( ',' );
}


this.setValue( String( _selected ) );
this.triggerCallbacks();
},
Expand Down

0 comments on commit c992553

Please sign in to comment.