File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* pat-date-picker - Polyfill for input type=date */
2
2
import $ from "jquery" ;
3
3
import Base from "../../core/base" ;
4
+ import logging from "../../core/logging" ;
4
5
import Parser from "../../core/parser" ;
5
6
import dom from "../../core/dom" ;
6
7
import events from "../../core/events" ;
7
8
import utils from "../../core/utils" ;
8
9
10
+ const log = logging . getLogger ( "date-picker" ) ;
11
+
9
12
export const parser = new Parser ( "date-picker" ) ;
10
13
parser . addArgument ( "behavior" , "styled" , [ "native" , "styled" ] ) ;
11
14
parser . addArgument ( "week-numbers" , [ ] , [ "show" , "hide" ] ) ;
@@ -162,9 +165,7 @@ export default Base.extend({
162
165
const response = await fetch ( this . options . i18n ) ;
163
166
config . i18n = await response . json ( ) ;
164
167
} catch {
165
- console . error (
166
- `date-picker could not load i18n for ${ this . options . i18n } `
167
- ) ;
168
+ log . error ( `date-picker could not load i18n for ${ this . options . i18n } ` ) ;
168
169
}
169
170
}
170
171
this . pikaday = new Pikaday ( config ) ;
You can’t perform that action at this time.
0 commit comments