1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-16 15:45:45 +01:00

Addressed PR feedback

This commit is contained in:
Max Guglielmi 2016-10-03 17:07:50 +11:00
commit 0f0ea9f2c4
9 changed files with 14 additions and 13 deletions

View file

@ -2,6 +2,7 @@ import {Date as SugarDate} from 'sugar-date';
import 'sugar-date/locales';
import {Feature} from '../feature';
import {isObj, isArray} from '../types';
import {DATE} from '../const';
/**
* Wrapper for Sugar Date module providing datetime helpers and locales
@ -101,7 +102,7 @@ export class DateType extends Feature {
addConfigFormats(types=[]) {
types.forEach((type, idx) => {
let options = this.getOptions(idx, types);
if (options.hasOwnProperty('format')) {
if (options.type === DATE && options.hasOwnProperty('format')) {
let locale = this.datetime.getLocale(
options.locale || this.locale
);