fixed native cc call to getMethods
This commit is contained in:
parent
a568c9cdd8
commit
0cac0053e3
@ -50,11 +50,11 @@ class Peripheral {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var types = getTypes(addr);
|
var types = getTypes(addr);
|
||||||
var methodsMap = cc.Peripheral.getMethods(addr).toArray();
|
var methodsMap = cc.Peripheral.getMethods(addr).toMap();
|
||||||
var methods:Array<String> = [];
|
var methods:Array<String> = [];
|
||||||
|
|
||||||
for (method in methodsMap) {
|
for (k => v in methodsMap) {
|
||||||
methods.push(method);
|
methods.push(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user