Skip to content

Commit

Permalink
Removed typing from variable 'value' in stringToBoolean functions
Browse files Browse the repository at this point in the history
This allows more flexibility in accepting non-string values (although the function SHOULD be receiving strings if the LMS follows the SCORM spec).
  • Loading branch information
pipwerks committed Jul 13, 2011
1 parent 2483b61 commit 48d42e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/AS2/com/pipwerks/SCORM.as
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ class com.pipwerks.SCORM {
}
}

private function __stringToBoolean(value:String):Boolean {
//Purposely not typing the variable 'value'
private function __stringToBoolean(value):Boolean {

var t:String = typeof value;

Expand Down
2 changes: 1 addition & 1 deletion src/AS3/com/pipwerks/SCORM.as
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ package com.pipwerks {
}
}

private function __stringToBoolean(value:String):Boolean {
private function __stringToBoolean(value:*):Boolean {

var t:String = typeof value;

Expand Down

0 comments on commit 48d42e6

Please sign in to comment.