Skip to content

Commit

Permalink
Clean up whitespace, mostly trailing whitespace (surveyjs#371)
Browse files Browse the repository at this point in the history
Looks fine to me know.

Thank you,
Andrew
  • Loading branch information
robertpeacock22 authored and andrewtelnov committed May 7, 2017
1 parent 0c01373 commit 4d3e006
Show file tree
Hide file tree
Showing 211 changed files with 339 additions and 340 deletions.
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Are you requesting a feature, reporting a bug or ask a queation?
### Are you requesting a feature, reporting a bug or ask a question?



Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ deploy:
script: chmod +x ./deploy_npm.sh && ./deploy_npm.sh
skip_cleanup: true
on:
tags: true
tags: true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
![alt tag](https://cloud.githubusercontent.com/assets/22315929/22462339/ed33f60a-e7bd-11e6-942b-72882e6bf1db.gif)

## Getting started
[![Join the chat at https://gitter.im/andrewtelnov/surveyjs](https://badges.gitter.im/andrewtelnov/surveyjs.svg)](https://gitter.im/andrewtelnov/surveyjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the chat at https://gitter.im/andrewtelnov/surveyjs](https://badges.gitter.im/andrewtelnov/surveyjs.svg)](https://gitter.im/andrewtelnov/surveyjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

To find out more about the library go
* to the [surveyjs.org site](http://surveyjs.org)
* explore the live [Examples](http://surveyjs.org/examples/)
* to the [surveyjs.org site](http://surveyjs.org)
* explore the live [Examples](http://surveyjs.org/examples/)
* and build a survey JSON using [Visual Editor](http://surveyjs.org/builder/)

You can try plnkr examples at:
Expand Down
2 changes: 1 addition & 1 deletion deploy_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> ./.npmrc
npm publish .
cd ../survey-vue
printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> ./.npmrc
npm publish .
npm publish .
2 changes: 1 addition & 1 deletion examples/angular/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ System.config({
defaultExtension: 'js'
}
}
});
});
2 changes: 1 addition & 1 deletion examples/angular/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
<ng-app></ng-app>
<script src="./index.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion examples/angular/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ function init() {

if(!window["%hammerhead%"]) {
init();
}
}
2 changes: 1 addition & 1 deletion examples/jquery/customWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
</div>
<script type="text/babel" src="./index.js"></script>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions examples/jquery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<script src="../../packages/survey-jquery/survey.jquery.js"></script>
<link rel="stylesheet" href="http://getbootstrap.com/dist/css/bootstrap.css">

<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>-->

<!-- Material Design fonts -->
Expand All @@ -21,12 +21,12 @@
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/ripples.css" />
<script src="https://unpkg.com/[email protected]/dist/js/material.js"></script>
<script src="https://unpkg.com/[email protected]/dist/js/ripples.js"></script>-->

</head>

<body>
<div id="surveyElement">
</div>
<script src="./index.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion examples/jquery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ function init() {

if(!window["%hammerhead%"]) {
init();
}
}
2 changes: 1 addition & 1 deletion examples/knockout/customWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
</div>
<script src="./index.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions examples/knockout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function init() {
window.survey = model;

model.render("surveyElement");

}

if(!window["%hammerhead%"]) {
init();
}
}
2 changes: 1 addition & 1 deletion examples/react/customWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
</div>
<script type="text/babel" src="./index.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion examples/react/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
</div>
<script type="text/babel" src="./index.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion examples/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ function init() {

if(!window["%hammerhead%"]) {
init();
}
}
2 changes: 1 addition & 1 deletion examples/vue/customWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
</div>
<script src="./index.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions examples/vue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/ripples.css" />
<script src="https://unpkg.com/[email protected]/dist/js/material.js"></script>
<script src="https://unpkg.com/[email protected]/dist/js/ripples.js"></script>-->

</head>

<body>
Expand All @@ -32,4 +32,4 @@
</div>
<script src="./index.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion examples/vue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ function init() {

if(!window["%hammerhead%"]) {
init();
}
}
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ module.exports = function(config) {
singleRun: false,
concurrency: Infinity
})
};
};
6 changes: 3 additions & 3 deletions npmREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ survey.js is a JavaScript Survey Library. It is a modern way to add a survey to
[![Build Status](https://travis-ci.org/surveyjs/surveyjs.svg?branch=master)](https://travis-ci.org/surveyjs/surveyjs)

##Getting started
[![Join the chat at https://gitter.im/andrewtelnov/surveyjs](https://badges.gitter.im/andrewtelnov/surveyjs.svg)](https://gitter.im/andrewtelnov/surveyjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the chat at https://gitter.im/andrewtelnov/surveyjs](https://badges.gitter.im/andrewtelnov/surveyjs.svg)](https://gitter.im/andrewtelnov/surveyjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

To find our more about the library go
* to the [surveyjs.org site](http://surveyjs.org)
* explore the live [Examples](http://surveyjs.org/examples/)
* to the [surveyjs.org site](http://surveyjs.org)
* explore the live [Examples](http://surveyjs.org/examples/)
* and build a survey JSON using [Visual Editor](http://surveyjs.org/builder/)

##License
Expand Down
2 changes: 1 addition & 1 deletion src/angular/SurveyNG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export class SurveyWindowNG {
var element: Element = typeof elementId === 'string' ? document.getElementById(elementId) : elementId;
ReactDOM.render(<SurveyWindow {...props} />, element);
}
}
}
2 changes: 1 addition & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ export class Event<T extends Function, Options> {
this.callbacks.splice(index, 1);
}
}
}
}
2 changes: 1 addition & 1 deletion src/choicesRestfull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ export class ChoicesRestfull extends Base {
}
private get objHash() { return this.url + ";" + this.path + ";" + this.valueName + ";" + this.titleName; }
}
JsonObject.metaData.addClass("choicesByUrl", ["url", "path", "valueName", "titleName"], function () { return new ChoicesRestfull(); });
JsonObject.metaData.addClass("choicesByUrl", ["url", "path", "valueName", "titleName"], function () { return new ChoicesRestfull(); });
2 changes: 1 addition & 1 deletion src/conditionProcessValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ export class ProcessValue {
return Number(str);
return -1;
}
}
}
2 changes: 1 addition & 1 deletion src/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ export class ConditionRunner {
if (nodeValue.length < 3 || nodeValue[0] != '{' || nodeValue[nodeValue.length - 1] != '}') return null;
return nodeValue.substr(1, nodeValue.length - 2);
}
}
}
2 changes: 1 addition & 1 deletion src/conditionsParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ export class ConditionsParser {
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/defaultCss/cssbootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export var defaultBootstrapCss = {
}
}
};
surveyCss["bootstrap"] = defaultBootstrapCss;
surveyCss["bootstrap"] = defaultBootstrapCss;
2 changes: 1 addition & 1 deletion src/defaultCss/cssstandard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export var defaultStandardCss = {
}
};

surveyCss["standard"] = defaultStandardCss;
surveyCss["standard"] = defaultStandardCss;
2 changes: 1 addition & 1 deletion src/dxSurveyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
};
xhr.send();
}
}
}
2 changes: 1 addition & 1 deletion src/entries/angular.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./react";
export {SurveyNG} from "../angular/SurveyNG";
export {SurveyWindowNG} from "../angular/SurveyNG";
export {SurveyWindowNG} from "../angular/SurveyNG";
2 changes: 1 addition & 1 deletion src/entries/chunks/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export var __decorate = function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
};
2 changes: 1 addition & 1 deletion src/entries/chunks/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ export {surveyLocalization, surveyStrings} from "../../surveyStrings";
export {QuestionCustomWidget, CustomWidgetCollection} from "../../questionCustomWidgets";

//Uncomment to include the "date" question type.
//export {default as QuestionDateModel} from "../../plugins/question_date";
//export {default as QuestionDateModel} from "../../plugins/question_date";
2 changes: 1 addition & 1 deletion src/entries/jquery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jQuery["fn"].extend({
}
});

export * from "./react";
export * from "./react";
2 changes: 1 addition & 1 deletion src/entries/knockout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export {SurveyWindow} from "../knockout/koSurveyWindow";
export {SurveyTemplateText} from "../knockout/templateText";

//Uncomment to include the "date" question type.
//export {QuestionDate} from "../plugins/knockout/koquestion_date";
//export {QuestionDate} from "../plugins/knockout/koquestion_date";
2 changes: 1 addition & 1 deletion src/entries/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ export {ReactQuestionFactory} from "../react/reactquestionfactory"; // TODO need
export {ReactQuestionFactory as QuestionFactory} from "../react/reactquestionfactory";

//Uncomment to include the "date" question type.
//export {default as SurveyQuestionDate} from "../plugins/react/reactquestiondate";
//export {default as SurveyQuestionDate} from "../plugins/react/reactquestiondate";
2 changes: 1 addition & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ export class CustomError extends SurveyError {
public getText(): string {
return this.text;
}
}
}
4 changes: 2 additions & 2 deletions src/itemvalue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export class ItemValue {
if(key == "text") {
this.locText.setJson(src[key]);
} else {
this[key] = src[key];
}
this[key] = src[key];
}
}
}
}
6 changes: 3 additions & 3 deletions src/jsonobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class JsonObjectProperty {
if (this.onSetValue) {
this.onSetValue(obj, value, jsonConv);
} else {
if(this.serializationProperty)
if(this.serializationProperty)
obj[this.serializationProperty].setJson(value);
else obj[this.name] = value;
}
Expand Down Expand Up @@ -122,7 +122,7 @@ export class JsonMetadataClass {
prop.serializationProperty = propInfo.serializationProperty;
var s: string;
if(prop.serializationProperty && prop.serializationProperty.indexOf("loc") == 0) {
prop.isLocalizable = true;
prop.isLocalizable = true;
}
}
if(propInfo.isLocalizable) {
Expand Down Expand Up @@ -497,4 +497,4 @@ export class JsonObject {
}
return null;
}
}
}
2 changes: 1 addition & 1 deletion src/knockout/koSurveyWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ export class SurveyWindow extends SurveyWindowModel {
private getButtonCss() {
return this.koExpanded() ? this.css.window.header.buttonCollapsed : this.css.window.header.buttonExpanded;
}
}
}
4 changes: 2 additions & 2 deletions src/knockout/kopage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class Panel extends PanelModel {
protected onNumChanged(value: number) {
this.locTitle.onChanged();
}
protected onRenderWidthChanged() {
protected onRenderWidthChanged() {
this.koInnerMargin(this.getIndentSize(this.innerIndent));
}
private getIndentSize(indent: number): string {
Expand Down Expand Up @@ -101,4 +101,4 @@ export class Page extends PageModel {
JsonObject.metaData.overrideClassCreatore("panel", function () { return new Panel(); });
JsonObject.metaData.overrideClassCreatore("page", function () { return new Page(); });

ElementFactory.Instance.registerElement("panel", (name) => { return new Panel(name); });
ElementFactory.Instance.registerElement("panel", (name) => { return new Panel(name); });
2 changes: 1 addition & 1 deletion src/knockout/koquestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ export class QuestionImplementor extends QuestionImplementorBase {
if (tEl.nodeName == "#text") tEl.data = "";
if (el && this.question.customWidget) this.question.customWidget.afterRender(this.question, el);
}
}
}
2 changes: 1 addition & 1 deletion src/knockout/koquestion_baseselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export class QuestionCheckboxBaseImplementor extends QuestionSelectBaseImplement
tEl = el[el.length - 1];
if (tEl.nodeName == "#text") tEl.data = "";
}
}
}
2 changes: 1 addition & 1 deletion src/knockout/koquestion_checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export class QuestionCheckbox extends QuestionCheckboxModel {
}

JsonObject.metaData.overrideClassCreatore("checkbox", function () { return new QuestionCheckbox(""); });
QuestionFactory.Instance.registerQuestion("checkbox", (name) => { var q = new QuestionCheckbox(name); q.choices = QuestionFactory.DefaultChoices; return q; });
QuestionFactory.Instance.registerQuestion("checkbox", (name) => { var q = new QuestionCheckbox(name); q.choices = QuestionFactory.DefaultChoices; return q; });
2 changes: 1 addition & 1 deletion src/knockout/koquestion_comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export class QuestionComment extends QuestionCommentModel {
}

JsonObject.metaData.overrideClassCreatore("comment", function () { return new QuestionComment(""); });
QuestionFactory.Instance.registerQuestion("comment", (name) => { return new QuestionComment(name); });
QuestionFactory.Instance.registerQuestion("comment", (name) => { return new QuestionComment(name); });
2 changes: 1 addition & 1 deletion src/knockout/koquestion_dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export class QuestionDropdown extends QuestionDropdownModel {
}

JsonObject.metaData.overrideClassCreatore("dropdown", function () { return new QuestionDropdown(""); });
QuestionFactory.Instance.registerQuestion("dropdown", (name) => { var q = new QuestionDropdown(name); q.choices = QuestionFactory.DefaultChoices; return q; });
QuestionFactory.Instance.registerQuestion("dropdown", (name) => { var q = new QuestionDropdown(name); q.choices = QuestionFactory.DefaultChoices; return q; });
Loading

0 comments on commit 4d3e006

Please sign in to comment.