Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
omarreiss committed Oct 6, 2015
1 parent 5868831 commit 676f62e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ YoastSEO.App = function( args ) {
* @type {Object}
*/
YoastSEO.App.defaultConfig = {
sampleText : {
baseUrl: 'example.org/',
snippetCite: 'example-post/',
title: 'This is an example title - edit by clicking here',
keyword: 'Choose a focus keyword',
meta: 'Modify your meta description by editing it right here',
text: 'Start writing your text!'
sampleText: {
baseUrl: "example.org/",
snippetCite: "example-post/",
title: "This is an example title - edit by clicking here",
keyword: "Choose a focus keyword",
meta: "Modify your meta description by editing it right here",
text: "Start writing your text!"
}
};

Expand All @@ -110,7 +110,7 @@ YoastSEO.App.defaultConfig = {
* @param {Object} args
* @returns {Object} args
*/
YoastSEO.App.prototype.extendConfig = function ( args ) {
YoastSEO.App.prototype.extendConfig = function( args ) {
args.sampleText = this.extendSampleText( args.sampleText );

return args;
Expand All @@ -122,13 +122,12 @@ YoastSEO.App.prototype.extendConfig = function ( args ) {
* @param {Object} sampleText
* @returns {Object} sampleText
*/
YoastSEO.App.prototype.extendSampleText = function ( sampleText ) {
YoastSEO.App.prototype.extendSampleText = function( sampleText ) {
var defaultSampleText = YoastSEO.App.defaultConfig.sampleText;

if ( sampleText === undefined ) {
sampleText = defaultSampleText;
}
else {
} else {
for ( var key in sampleText ) {
if ( sampleText[ key ] === undefined ) {
sampleText[ key ] = defaultSampleText[ key ];
Expand Down

0 comments on commit 676f62e

Please sign in to comment.