Permalink
Browse files

Fixed a problem with Safari

  • Loading branch information...
1 parent 4c20222 commit 8afadf947cba956abe7423b6dc61247509f1ec67 bobopinna committed May 10, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scorm1_2.js.php
@@ -244,7 +244,7 @@ function LMSSetValue (element,value) {
elementmodel = element.replace(expression,'.n.');
if ((typeof eval('datamodel["'+elementmodel+'"]')) != "undefined") {
if (eval('datamodel["'+elementmodel+'"].mod') != 'r') {
- expression.compile(eval('datamodel["'+elementmodel+'"].format'));
+ expression = new RegExp(eval('datamodel["'+elementmodel+'"].format'));
value = value+'';
matches = value.match(expression);
if (matches != null) {

0 comments on commit 8afadf9

Please sign in to comment.