Skip to content

Commit 7182f11

Browse files
committed
some warnings removed
1 parent b200c8b commit 7182f11

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

dataManager/SavedDatas2.as

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
}
6868

6969
/**Change the table name for this special user*/
70-
public static function setTableName(tableNameTitle:String='')
70+
public static function setTableName(tableNameTitle:String=''):void
7171
{
7272
tableName = tableBaseName+tableNameTitle;
7373
SaffronLogger.log("new table name is : "+tableName);
@@ -78,7 +78,7 @@
7878

7979

8080

81-
public static function setUp(checkTable:Boolean = false)
81+
public static function setUp(checkTable:Boolean = false):void
8282
{
8383
var needToUpdate:Boolean = false ;
8484
if(sql == null)
@@ -256,7 +256,7 @@
256256
asyncQuery.execute();
257257
}
258258

259-
private static function continueSaving(e:*=null)
259+
private static function continueSaving(e:*=null):void
260260
{
261261
var id:String = asyncQue[0].id ;
262262
var data:* = asyncQue[0].data ;
@@ -283,7 +283,7 @@
283283
}
284284

285285
/**load the value if the value is new on data base*/
286-
public static function loadIfNewer(id,lastDate:Date=null):*
286+
public static function loadIfNewer(id:*,lastDate:Date=null):*
287287
{
288288
return load(id,lastDate);
289289
}
@@ -298,7 +298,7 @@
298298

299299
var l:uint = asyncQue.length ;
300300
var l2:uint = asyncSaved.length ;
301-
for(var i = l-1 ; i>=0 ; i--)
301+
for(var i:* = l-1 ; i>=0 ; i--)
302302
{
303303
if(asyncQue[i].id == id)
304304
{

drawPad/Paper.as

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
this.addEventListener(Event.REMOVED_FROM_STAGE,unLoad);
131131
}
132132

133-
private function unLoad(event:Event)
133+
private function unLoad(event:Event):void
134134
{
135135
this.removeEventListener(Event.ENTER_FRAME,drawLines);
136136
this.removeEventListener(Event.REMOVED_FROM_STAGE,unLoad);
@@ -163,11 +163,11 @@
163163
}
164164

165165

166-
private function drawLines(ev:Event=null)
166+
private function drawLines(ev:Event=null):void
167167
{
168168
if(draw)
169169
{
170-
for(var i = 0 ; i<resolutions ; i++)
170+
for(var i:* = 0 ; i<resolutions ; i++)
171171
{
172172
Vx += (myX-stablePoint.x)/Fu ;
173173
Vx *= Mu ;
@@ -224,7 +224,7 @@
224224
lineTo(myX+2,myY)
225225
}
226226

227-
public function lineTo(X:Number,Y:Number)
227+
public function lineTo(X:Number,Y:Number):void
228228
{
229229
//send these parameters to currentPenLine if there is an active one there
230230
myX = X ;
@@ -237,7 +237,7 @@
237237
/**Stop the current item to continue draw*/
238238
public function stopDraw():void
239239
{
240-
for(var i = 0 ; i<20 ; i++)
240+
for(var i:* = 0 ; i<20 ; i++)
241241
{
242242
drawLines();
243243
}
@@ -259,7 +259,7 @@
259259
SaffronLogger.log("stop drawing");
260260
}
261261

262-
public function importBitmap(bitmap:Bitmap)
262+
public function importBitmap(bitmap:Bitmap):void
263263
{
264264
var currentDrawnBitmap:Bitmap = bitmap;
265265
currentDrawnBitmap.smoothing = true ;
@@ -366,7 +366,7 @@
366366

367367

368368
///////////////////////////////////////////
369-
private function setUpCaptureWithDilay()
369+
private function setUpCaptureWithDilay():void
370370
{
371371
captureTimer = new Timer(captureDilay,1);
372372
captureTimer.addEventListener(TimerEvent.TIMER_COMPLETE,captureAndSaveDrawing);

notification/NotificationEvent.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package notification
44

55
public class NotificationEvent extends Event
66
{
7-
public static const TOKEN_REGISTER_COMPELETED="TOKEN_REGISTER_COMPELETED"
8-
public static const TOKEN_REGISTER_START = "TOKEN_REGISTER_START"
7+
public static const TOKEN_REGISTER_COMPELETED:String="TOKEN_REGISTER_COMPELETED"
8+
public static const TOKEN_REGISTER_START:String = "TOKEN_REGISTER_START"
99

1010
public static const NOTIFICATION:String = "NOTIFICATION";
1111
public static const FOREGROUND_NOTIFICATION:String = "FOREGROUND_NOTIFICATION";

notification/NotificationManager.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
return Notification_Event ;
7070
}
7171

72-
private function EasyPushExample()
72+
private function EasyPushExample() :void
7373
{
7474

7575
//Controll permissions↓

photoEditor/EditorPencil.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ package photoEditor
194194
var tool:MovieClip = event.currentTarget as MovieClip ;
195195
var toolSize:Number = uint(tool.name.split(toolsSizeName).join(''));
196196

197-
for(var i = 0 ; i<sizes.length ; i++)
197+
for(var i:* = 0 ; i<sizes.length ; i++)
198198
{
199199
sizes[i].gotoAndStop(1);
200200
}
@@ -211,7 +211,7 @@ package photoEditor
211211
{
212212
selectedTool = null ;
213213

214-
for(var i = 0 ; i<tools.length ; i++)
214+
for(var i:* = 0 ; i<tools.length ; i++)
215215
{
216216
if(event.target == tools[i])
217217
{

photoEditor/PhotoEdit.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
{
211211
DeviceImage.resizeLoadedImage(showImage,NaN,NaN,image,false);
212212

213-
function showImage()
213+
function showImage():void
214214
{
215215
ME.StartEditing(DeviceImage.imageBitmapData);
216216
}
@@ -243,7 +243,7 @@
243243
if(imageIndex<imageHistory.length-1)
244244
{
245245
var disposedBitmaps:Vector.<BitmapData> = imageHistory.splice(imageIndex+1,imageHistory.length-imageIndex);
246-
for(var i = 0 ; i<disposedBitmaps.length ; i++)
246+
for(var i:* = 0 ; i<disposedBitmaps.length ; i++)
247247
{
248248
disposedBitmaps[i].dispose();
249249
}

photoEditor/StampList.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ package photoEditor
4646

4747
stampInnerContainer = new Sprite();
4848

49-
for(var i = 0 ; i<stampFile.length ; i++)
49+
for(var i:* = 0 ; i<stampFile.length ; i++)
5050
{
5151
var newItems:StampButton = new StampButton();
5252
newItems.load(stampFile[i]);
@@ -151,7 +151,7 @@ package photoEditor
151151
{
152152
onTouchItem = null ;
153153
button_remove.gotoAndStop(2);
154-
for(var i = 0 ; i<stampInnerContainer.numChildren ; i++)
154+
for(var i:* = 0 ; i<stampInnerContainer.numChildren ; i++)
155155
{
156156
(stampInnerContainer.getChildAt(i) as MovieClip).stopDrag();
157157
}

restDoaService/RestDoaServiceCaller.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@
507507
var readableObject:Object = Obj.createReadAbleObject(obj);// .myParams ;
508508
urlVars = new URLVariables();
509509

510-
for(var i in readableObject)
510+
for(var i:* in readableObject)
511511
{
512512
urlVars[i] = readableObject[i] ;//a1=123&a2=32 || CaseTbl=(a1=123&a2=32)
513513
}
@@ -554,7 +554,7 @@
554554
{
555555
SaffronLogger.log("* instant cashed data for "+myId+" : "+savedData);
556556
}
557-
FuncManager.callAsyncOnFrame(function(){
557+
FuncManager.callAsyncOnFrame(function():void{
558558
parsLoadedData(savedData);
559559
if(expired)
560560
{

tabMenu/TabMenuManager.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ package tabMenu
2424
}
2525

2626

27-
for(var valueName in _currentTabe[GroupName_p])
27+
for(var valueName:* in _currentTabe[GroupName_p])
2828
{
2929
_currentTabe[GroupName_p][valueName] = false;
3030
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy