Updated application sources
[apps/web/sample/CallLog.git] / project / js / app.ui.templateManager.modifiers.js
1 /*
2 *      Copyright 2013  Samsung Electronics Co., Ltd
3 *
4 *      Licensed under the Flora License, Version 1.1 (the "License");
5 *      you may not use this file except in compliance with the License.
6 *      You may obtain a copy of the License at
7 *
8 *              http://floralicense.org/license/
9 *
10 *      Unless required by applicable law or agreed to in writing, software
11 *      distributed under the License is distributed on an "AS IS" BASIS,
12 *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 *      See the License for the specific language governing permissions and
14 *      limitations under the License.
15 */
16
17 /*global $*/
18
19 /**
20 * @class ModifierManager
21 */
22 function ModifierManager() {
23     'use strict';
24     this.init();
25 }
26
27 (function () {
28     'use strict';
29
30     ModifierManager.prototype = {
31
32         /**
33         * UI module initialisation
34         */
35         init: function () {
36         },
37
38         /**
39         * @return modifiers object
40         */
41         getAll: function () {
42             return this.modifiers;
43         },
44
45         /**
46         * modifiers definitions
47         */
48         modifiers: {
49             escape: function escape(str) {
50                 return $('<span>').text(str).html();
51             }
52         }
53
54     };
55
56 }());