Skip to content

Commit 2483b61

Browse files
committed
Specified data types for erroneously untyped variables
Doesn't change functionality, just dots the i and crosses the t.
1 parent f5fd122 commit 2483b61

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/AS2/com/pipwerks/SCORM.as

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import flash.external.*;
3030

3131
class com.pipwerks.SCORM {
3232

33-
private var __connectionActive = false,
34-
__debugActive = true; //Enable (true) or disable (false)
33+
private var __connectionActive:Boolean = false,
34+
__debugActive:Boolean = true; //Enable (true) or disable (false)
3535

3636

3737
public function SCORM() {
@@ -253,15 +253,15 @@ class com.pipwerks.SCORM {
253253

254254
private function __stringToBoolean(value:String):Boolean {
255255

256-
var t = typeof value;
256+
var t:String = typeof value;
257257

258258
switch(t){
259259

260260
case "boolean": return value;
261261
case "number": return !!value;
262262
case "undefined": return null;
263263
case "string":
264-
var str = value.toLowerCase();
264+
var str:String = value.toLowerCase();
265265
return (str === "true" || str === "1");
266266

267267
default: return false;

src/AS3/com/pipwerks/SCORM.as

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ package com.pipwerks {
3232

3333
public class SCORM {
3434

35-
private var __connectionActive = false,
36-
__debugActive = true;
35+
private var __connectionActive:Boolean = false,
36+
__debugActive:Boolean = true;
3737

3838

3939
public function SCORM() {
@@ -254,7 +254,7 @@ package com.pipwerks {
254254

255255
private function __stringToBoolean(value:String):Boolean {
256256

257-
var t = typeof value;
257+
var t:String = typeof value;
258258

259259
switch(t){
260260

0 commit comments

Comments
 (0)