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 methodsMap = cc.Peripheral.getMethods(addr).toArray();
|
||||
var methodsMap = cc.Peripheral.getMethods(addr).toMap();
|
||||
var methods:Array<String> = [];
|
||||
|
||||
for (method in methodsMap) {
|
||||
methods.push(method);
|
||||
for (k => v in methodsMap) {
|
||||
methods.push(k);
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user