Project

General

Profile

1811p_diff.txt

Sergey Ivanovskiy, 07/27/2015 10:30 AM

Download (8.97 KB)

 
1
=== modified file 'src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.clipboard_helpers.js'
2
--- src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.clipboard_helpers.js	2015-05-18 20:48:28 +0000
3
+++ src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.clipboard_helpers.js	2015-07-26 19:50:33 +0000
4
@@ -14,6 +14,7 @@
5
 
6
 p2j.clipboard_helpers = (function() 
7
 {
8
+   "use strict";
9
    /** Clipboard helper object which will be returned from this initialization function. */
10
    var me = {};
11
    
12

    
13
=== modified file 'src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.screen.js'
14
--- src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.screen.js	2015-05-18 20:48:28 +0000
15
+++ src/com/goldencode/p2j/ui/client/chui/driver/web/res/p2j.screen.js	2015-07-26 21:04:13 +0000
16
@@ -23,6 +23,7 @@
17
 
18
 p2j.screen = (function()
19
 {
20
+   "use strict";
21
    /** Screen object which will be returned from this initialization function. */
22
    var me = {};
23
 
24
@@ -76,10 +77,10 @@
25
       {
26
          me.color = color;
27
          memo = new Array(rows);
28
-         for (i = 0; i < rows; i++)
29
+         for (var i = 0; i < rows; i++)
30
          {
31
             memo[i] = new Array(cols);
32
-            for (j = 0; j < cols; j++)
33
+            for (var j = 0; j < cols; j++)
34
             {
35
                var cell = {'c': ' ', 'f': 'white', 'b': 'black', 'a': 0, 'k': 0};
36
                cell.f = color.f;
37
@@ -97,9 +98,9 @@
38
        */
39
       me.clear = function(rows, cols)
40
       {
41
-         for (i = 0; i < rows; i++)
42
+         for (var i = 0; i < rows; i++)
43
          {
44
-            for (j = 0; j < cols; j++)
45
+            for (var j = 0; j < cols; j++)
46
             {
47
                var v = memo[i][j];
48
                v.c = ' ';
49
@@ -157,9 +158,9 @@
50
       me.copy = function(begRow, endRow, begCol, endCol)
51
       {
52
          var text = "";         
53
-         for (i = begRow; i <= endRow; i++)
54
+         for (var i = begRow; i <= endRow; i++)
55
          {
56
-            for (j = begCol; j <= endCol; j++)
57
+            for (var j = begCol; j <= endCol; j++)
58
             {
59
                text += memo[i][j].c;
60
             }
61

    
62
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/index.html'
63
--- src/com/goldencode/p2j/ui/client/driver/web/index.html	2015-05-18 20:48:28 +0000
64
+++ src/com/goldencode/p2j/ui/client/driver/web/index.html	2015-07-26 19:50:34 +0000
65
@@ -21,7 +21,8 @@
66
       require(["dojo"], function(dojo)
67
       {
68
          dojo.ready(function()
69
-         {               
70
+         {   
71
+            "use strict";
72
             p2j.init({
73
                'isGui' : ${isGui},
74
                'canvas' : {'id' : 'def_win', 'size' : {'${height_name}' : ${height_val}, '${width_name}' : ${width_val}}, 'mouse' : false},
75

    
76
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.clipboard.js'
77
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.clipboard.js	2015-05-18 20:48:28 +0000
78
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.clipboard.js	2015-07-26 19:31:50 +0000
79
@@ -26,6 +26,7 @@
80
  */
81
 p2j.clipboard = (function() 
82
 {
83
+   "use strict";
84
    /** Clipboard object which will be returned from this initialization function. */
85
    var me = {};
86
    
87

    
88
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js'
89
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js	2015-05-18 20:48:28 +0000
90
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js	2015-07-26 20:15:59 +0000
91
@@ -31,8 +31,9 @@
92
  *    <li> p2j.clipboard
93
  * </ol>
94
  */
95
-p2j = (function()
96
+var p2j = (function()
97
 {
98
+   "use strict";
99
    /** The top-level web client object which will be returned from this function. */
100
    var me = {};
101
 
102

    
103
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keyboard.js'
104
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keyboard.js	2015-05-18 20:48:28 +0000
105
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keyboard.js	2015-07-26 19:29:31 +0000
106
@@ -20,6 +20,7 @@
107
 
108
 p2j.keyboard = (function()
109
 {
110
+   "use strict";
111
    /** Keyboard object which will be returned from this initialization function. */
112
    var me = {};    
113
    
114

    
115
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keymap.js'
116
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keymap.js	2015-05-18 20:48:28 +0000
117
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.keymap.js	2015-07-26 20:22:29 +0000
118
@@ -18,75 +18,84 @@
119
 /**
120
  * Global definitions for common key values.
121
  */
122
-keys = 
123
-{
124
-   BACKSPACE: 8,
125
-   TAB: 9,
126
-   CLEAR: 12,
127
-   ENTER: 13,
128
-   SHIFT: 16,
129
-   CTRL: 17,
130
-   ALT: 18,
131
-   PAUSE: 19,
132
-   CAPS_LOCK: 20,
133
-   ESCAPE: 27,
134
-   SPACE: 32,
135
-   PAGE_UP: 33,
136
-   PAGE_DOWN: 34,
137
-   END: 35,
138
-   HOME: 36,
139
-   LEFT_ARROW: 37,
140
-   UP_ARROW: 38,
141
-   RIGHT_ARROW: 39,
142
-   DOWN_ARROW: 40,
143
-   INSERT: 45,
144
-   DELETE: 46,
145
-   HELP: 47,
146
-   LEFT_WINDOW: 91,
147
-   RIGHT_WINDOW: 92,
148
-   SELECT: 93,
149
-   NUMPAD_0: 96,
150
-   NUMPAD_1: 97,
151
-   NUMPAD_2: 98,
152
-   NUMPAD_3: 99,
153
-   NUMPAD_4: 100,
154
-   NUMPAD_5: 101,
155
-   NUMPAD_6: 102,
156
-   NUMPAD_7: 103,
157
-   NUMPAD_8: 104,
158
-   NUMPAD_9: 105,
159
-   NUMPAD_MULTIPLY: 106,
160
-   NUMPAD_PLUS: 107,
161
-   NUMPAD_ENTER: 108,
162
-   NUMPAD_MINUS: 109,
163
-   NUMPAD_PERIOD: 110,
164
-   NUMPAD_DIVIDE: 111,
165
-   F1: 112,
166
-   F2: 113,
167
-   F3: 114,
168
-   F4: 115,
169
-   F5: 116,
170
-   F6: 117,
171
-   F7: 118,
172
-   F8: 119,
173
-   F9: 120,
174
-   F10: 121,
175
-   F11: 122,
176
-   F12: 123,
177
-   F13: 124,
178
-   F14: 125,
179
-   F15: 126,
180
-   NUM_LOCK: 144,
181
-   SCROLL_LOCK: 145,
182
-   UP_DPAD: 175,
183
-   DOWN_DPAD: 176,
184
-   LEFT_DPAD: 177,
185
-   RIGHT_DPAD: 178
186
-};
187
+var keys;
188
+
189
+(function() {
190
+   "use strict";
191
+   keys = {
192
+      BACKSPACE : 8,
193
+      TAB : 9,
194
+      CLEAR : 12,
195
+      ENTER : 13,
196
+      SHIFT : 16,
197
+      CTRL : 17,
198
+      ALT : 18,
199
+      PAUSE : 19,
200
+      CAPS_LOCK : 20,
201
+      ESCAPE : 27,
202
+      SPACE : 32,
203
+      PAGE_UP : 33,
204
+      PAGE_DOWN : 34,
205
+      END : 35,
206
+      HOME : 36,
207
+      LEFT_ARROW : 37,
208
+      UP_ARROW : 38,
209
+      RIGHT_ARROW : 39,
210
+      DOWN_ARROW : 40,
211
+      INSERT : 45,
212
+      DELETE : 46,
213
+      HELP : 47,
214
+      LEFT_WINDOW : 91,
215
+      RIGHT_WINDOW : 92,
216
+      SELECT : 93,
217
+      NUMPAD_0 : 96,
218
+      NUMPAD_1 : 97,
219
+      NUMPAD_2 : 98,
220
+      NUMPAD_3 : 99,
221
+      NUMPAD_4 : 100,
222
+      NUMPAD_5 : 101,
223
+      NUMPAD_6 : 102,
224
+      NUMPAD_7 : 103,
225
+      NUMPAD_8 : 104,
226
+      NUMPAD_9 : 105,
227
+      NUMPAD_MULTIPLY : 106,
228
+      NUMPAD_PLUS : 107,
229
+      NUMPAD_ENTER : 108,
230
+      NUMPAD_MINUS : 109,
231
+      NUMPAD_PERIOD : 110,
232
+      NUMPAD_DIVIDE : 111,
233
+      F1 : 112,
234
+      F2 : 113,
235
+      F3 : 114,
236
+      F4 : 115,
237
+      F5 : 116,
238
+      F6 : 117,
239
+      F7 : 118,
240
+      F8 : 119,
241
+      F9 : 120,
242
+      F10 : 121,
243
+      F11 : 122,
244
+      F12 : 123,
245
+      F13 : 124,
246
+      F14 : 125,
247
+      F15 : 126,
248
+      NUM_LOCK : 144,
249
+      SCROLL_LOCK : 145,
250
+      UP_DPAD : 175,
251
+      DOWN_DPAD : 176,
252
+      LEFT_DPAD : 177,
253
+      RIGHT_DPAD : 178
254
+   };
255
+}());
256
 
257
 p2j.keymap = (function()
258
 {
259
-   /** Key mapping object which will be returned from this initialization function. */
260
+   "use strict";
261
+
262
+   /**
263
+    * Key mapping object which will be returned from this initialization
264
+    * function.
265
+    */
266
    var me = {};
267
    
268
    /* normal key mapping */   
269
@@ -94,7 +103,7 @@
270
    
271
    /* ALT key mapping */
272
    me.xlateAlt = {};         
273
-       
274
+   
275
    /**
276
     * Init function.
277
     */
278

    
279
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js'
280
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js	2015-05-18 20:48:28 +0000
281
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js	2015-07-26 19:25:45 +0000
282
@@ -21,6 +21,8 @@
283
 
284
 p2j.socket = (function()
285
 {
286
+   "use strict";
287
+
288
    /** Socket object which will be returned from this initialization function. */
289
    var me = {}; 
290
 
291

    
292
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.sound.js'
293
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.sound.js	2015-05-18 20:48:28 +0000
294
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.sound.js	2015-07-26 19:25:59 +0000
295
@@ -17,6 +17,8 @@
296
 
297
 p2j.sound = (function()
298
 {
299
+   "use strict";
300
+
301
    /** Sound object which will be returned from this initialization function. */
302
    var me = {};
303
    
304

    
305
=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.clipboard_helpers.js'
306
--- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.clipboard_helpers.js	2015-05-18 20:48:28 +0000
307
+++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.clipboard_helpers.js	2015-07-26 19:49:58 +0000
308
@@ -14,6 +14,7 @@
309
 
310
 p2j.clipboard_helpers = (function() 
311
 {
312
+   "use strict";
313
    /** Clipboard helper object which will be returned from this initialization function. */
314
    var me = {};
315
    
316

    
317
=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js'
318
--- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js	2015-05-18 20:48:28 +0000
319
+++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js	2015-07-26 19:48:56 +0000
320
@@ -16,6 +16,7 @@
321
 
322
 p2j.screen = (function()
323
 {
324
+   "use strict";
325
    /** Screen object which will be returned from this initialization function. */
326
    var me = {};
327
 
328