mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prettier: change to single quoting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user