src/Evaluate.cpp in capybara-webkit-1.14.0 vs src/Evaluate.cpp in capybara-webkit-1.15.0
- old
+ new
@@ -16,11 +16,11 @@
jsonArgs ="[]";
}
QString eval_script = QString("(function(){"
" for(var i=0; i<arguments.length; i++) {"
" arguments[i] = JSON.parse(arguments[i]);"
- " var elem_id;"
- " if (elem_id = arguments[i]['element-581e-422e-8be1-884c4e116226']) {"
+ " var elem_id = arguments[i]['element-581e-422e-8be1-884c4e116226'];"
+ " if (elem_id) {"
" arguments[i] = Capybara.getNode(elem_id);"
" };"
" };"
" var _result = eval(\"%1\");"
" return Capybara.wrapResult(_result);"