Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a problem with Safari

  • Loading branch information...
commit 8afadf947cba956abe7423b6dc61247509f1ec67 1 parent 4c20222
bobopinna authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/scorm/datamodels/scorm1_2.js.php
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.