Skip to content

Commit 48d42e6

Browse files
committed
Removed typing from variable 'value' in stringToBoolean functions
This allows more flexibility in accepting non-string values (although the function SHOULD be receiving strings if the LMS follows the SCORM spec).
1 parent 2483b61 commit 48d42e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/AS2/com/pipwerks/SCORM.as

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ class com.pipwerks.SCORM {
251251
}
252252
}
253253

254-
private function __stringToBoolean(value:String):Boolean {
254+
//Purposely not typing the variable 'value'
255+
private function __stringToBoolean(value):Boolean {
255256

256257
var t:String = typeof value;
257258

src/AS3/com/pipwerks/SCORM.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ package com.pipwerks {
252252
}
253253
}
254254

255-
private function __stringToBoolean(value:String):Boolean {
255+
private function __stringToBoolean(value:*):Boolean {
256256

257257
var t:String = typeof value;
258258

0 commit comments

Comments
 (0)