application sources from tizen_2.2
[apps/web/sample/ContactsExchanger.git] / project / js / app.config.js
1 /**
2  * @class Config
3  */
4 function Config() {
5         'use strict';
6 }
7
8 (function () { // strict mode wrapper
9         'use strict';
10         Config.prototype = {
11
12                 properties: {
13                         'templateDir': 'templates',
14                         'templateExtension': '.tpl'
15                 },
16
17                 /**
18                  * Returns config value
19                  */
20                 get: function (value, defaultValue) {
21
22                         if (this.properties.hasOwnProperty(value)) {
23                                 return this.properties[value];
24                         }
25                         return defaultValue;
26                 }
27         };
28 }());