File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change
1
+ cmd : gulp
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // Document ready
4
- $ ( function ( )
3
+ // Options module, passed jQuery object by doc ready
4
+ var ateOptionsModule = ( function ( $ )
5
5
{
6
6
// Constants
7
- var FIRST_RUN_KEY = 'autoTextExpanderFirstRun' // Local key to check for first run
7
+ var FIRST_RUN_KEY = 'autoTextExpanderFirstRun' // Check for first run
8
+
8
9
, DATE_MACRO_DEMO_FORMAT = 'MMMM Do YYYY'
9
10
10
11
, DEFAULT_SHORTCUT_FILLER = 'Shortcut'
@@ -37,9 +38,8 @@ $(function()
37
38
, cachedInputValue // Track value of input field that user focused on
38
39
;
39
40
40
- init ( ) ;
41
41
42
- function initialize ( )
42
+ function init ( )
43
43
{
44
44
// Setup metadata defaults
45
45
metadata [ ATE_CONST . SHORTCUT_TIMEOUT_KEY ] = DEFAULT_CLEAR_BUFFER_TIMEOUT ;
@@ -957,4 +957,13 @@ $(function()
957
957
}
958
958
} ) ;
959
959
}
960
+
961
+ return {
962
+ init : init ,
963
+ showCrouton : showCrouton ,
964
+ showCrouton : showModalPopup ,
965
+ } ;
960
966
} ) ;
967
+
968
+ // Document ready
969
+ $ ( ateOptionsModule . init ) ;
You can’t perform that action at this time.
0 commit comments