-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyles.js
44 lines (33 loc) · 1.2 KB
/
styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
(function () {
var VERSION = 0.1;
var MODULE_PATH = "styles";
var thisModule = Sky.getUtil(MODULE_PATH);
if( thisModule && thisModule.version >= VERSION) {
return;
};
//--------------------------
// Start styles class
function moduleClass() {
var styles = this;
styles.version = VERSION;
styles.description = "Tools to create and adjust character, paragraph and object styles in InDesign.";
var LoadCallback = function ( err, module ){
// Throws an error when dependency could not be loaded...
if( err instanceof Error || err instanceof TypeError ) {
throw new TypeError( err.message, $.fileName, $.line );
};
return module;
};
// Load any needed dependencies
// var Module = Sky.getUtil( "module", LoadCallback );
//- - - - - - - - - - - - - - - - - - - - - -
// Module code from here...
//- - - - - - - - - - - - - - - - - - - - - -
styles.test = function() {
return true;
};
};
//--------------------------
// End styles class
Sky.setUtil(MODULE_PATH, new moduleClass() );
})();