Revert "Deduplicate use of ptr_eq for Models"

This was not intended to get uploaded without review!

This reverts commit d678f4b1da.
This commit is contained in:
Tobias Hunger 2022-01-03 17:10:27 +01:00
parent ee3d51ce54
commit 6d69c343dc
No known key found for this signature in database
GPG key ID: 60874021D2F23F91
6 changed files with 18 additions and 54 deletions

View file

@ -188,7 +188,7 @@ fn to_eval_value<'cx>(
obj.get(cx, "rowCount")?.downcast_or_throw::<JsFunction, _>(cx)?;
obj.get(cx, "rowData")?.downcast_or_throw::<JsFunction, _>(cx)?;
let m = js_model::JsModel::new(obj, *a, cx, persistent_context)?;
Ok(Value::Model(sixtyfps_corelib::model::SharedModel(m)))
Ok(Value::Model(m))
}
},
Type::Image => {