prettier: change to single quoting

This commit is contained in:
Torkel Ödegaard
2017-12-20 12:33:33 +01:00
parent 2a360c45a2
commit 85879a7014
304 changed files with 10558 additions and 10519 deletions

View File

@@ -1,22 +1,22 @@
///<reference path="../../headers/common.d.ts" />
import _ from "lodash";
import coreModule from "../core_module";
import _ from 'lodash';
import coreModule from '../core_module';
export function arrayJoin() {
"use strict";
'use strict';
return {
restrict: "A",
require: "ngModel",
restrict: 'A',
require: 'ngModel',
link: function(scope, element, attr, ngModel) {
function split_array(text) {
return (text || "").split(",");
return (text || '').split(',');
}
function join_array(text) {
if (_.isArray(text)) {
return (text || "").join(",");
return (text || '').join(',');
} else {
return text;
}
@@ -24,8 +24,8 @@ export function arrayJoin() {
ngModel.$parsers.push(split_array);
ngModel.$formatters.push(join_array);
}
},
};
}
coreModule.directive("arrayJoin", arrayJoin);
coreModule.directive('arrayJoin', arrayJoin);