Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] opa_event_to_dom_event: added a very basic fix for opa_event_to…

…_dom_event
  • Loading branch information...
commit 63474690945ce45126f23b08cb91471319ce4f25 1 parent ef1d8b5
@Aqua-Ye Aqua-Ye authored Aqua-Ye committed
Showing with 10 additions and 6 deletions.
  1. +7 −6 opabsl/jsbsl/jQueryExtends.js
  2. +3 −0  qmljsimp/qmlJsImpClientLib.js
View
13 opabsl/jsbsl/jQueryExtends.js
@@ -496,14 +496,15 @@ function opa_event_to_dom_event(event, name)
}
}
-
//4. Handle value change
- var value_change = record2obj(record.value_change);
- if(value_change.none != null)
+ var value_change = record.value_change;
+ if(value_change != null)
{
- var change = record2obj(value_change.some);
- result.prevVal = change.from;
- result.newVal = change.to;
+ var change = option2js(value_change);
+ if (change != null) {
+ result.prevVal = change.from;
+ result.newVal = change.to;
+ }
}
return result;
View
3  qmljsimp/qmlJsImpClientLib.js
@@ -175,6 +175,9 @@ function normalize_num() {
error("normalize_num not implemented")
}
+// FIXME: BUGGY, does not handle special opa fields...
+function record2obj(x) { return x; }
+
function extendrecord() {
// WONT BE IMPLEMENTED or change the name
error("extendrecord not implemented")
Please sign in to comment.
Something went wrong with that request. Please try again.