- scope.response = response.data;
- scope.errcode = response.status;
-
- if (response.status !== 200) {
- console.log ("Hoop GetRunnable failed");
- return;
- }
-
- // Check this is a valid response from Binder
- if (response.data.jtype != "afb-reply") {
+ scope.response = jresp.response;
+ scope.errcode = jresp.request.status;
+
+ // Check if this is a response from AGL application framework binder
+ if (jresp.jtype !== "afb-reply") {