Commit c0835d3d authored by Vivek's avatar Vivek

updated getInerfaceList to work with gadget url.

parent 9da14a5d
...@@ -308,7 +308,6 @@ ...@@ -308,7 +308,6 @@
return new RSVP.Queue()\n return new RSVP.Queue()\n
.push(function () {\n .push(function () {\n
return interface_gadget.declareGadget(gadget_url, {\n return interface_gadget.declareGadget(gadget_url, {\n
// sandbox: \'iframe\',\n
scope: gadget_url\n scope: gadget_url\n
});\n });\n
})\n })\n
...@@ -317,8 +316,21 @@ ...@@ -317,8 +316,21 @@
});\n });\n
})\n })\n
\n \n
.declareMethod("getDeclaredGadgetInterfaceList", function (gadget) {\n .declareMethod("getDeclaredGadgetInterfaceList", function (gadget_data) {\n
return gadget.getInterfaceList();\n var interface_gadget = this;\n
return RSVP.Queue()\n
.push(function() {\n
var required_gadget;\n
if(gadget_data.constructor === String) {\n
required_gadget = interface_gadget.getVerifyGadget(gadget_data);\n
} else {\n
required_gadget = gadget_data;\n
}\n
return required_gadget;\n
})\n
.push(function(gadget) {\n
return gadget.getInterfaceList();\n
});\n
})\n })\n
\n \n
.declareMethod("getDeclaredGadgetMethodList", function (gadget) {\n .declareMethod("getDeclaredGadgetMethodList", function (gadget) {\n
...@@ -630,7 +642,7 @@ ...@@ -630,7 +642,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.3617.50497.56388</string> </value> <value> <string>945.42564.9271.16896</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -648,7 +660,7 @@ ...@@ -648,7 +660,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441292695.71</float> <float>1441891610.67</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment