diff options
| author | Todd Lee <tlee@imvu.com> | 2012-11-28 15:18:07 -0800 |
|---|---|---|
| committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:22:12 +0300 |
| commit | 73d2de4105fd8f7200fe42e868e53fe2378fab83 (patch) | |
| tree | 5f1d19f74c948f388abb1e3c44ecfe55b6552b69 /system | |
| parent | 88b63143fa199f6cf93d10434df9e9b0740c6895 (diff) | |
use simpler way to get length of an array
Diffstat (limited to 'system')
| -rw-r--r-- | system/include/emscripten/val.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h index 945b0d8a..8db052e8 100644 --- a/system/include/emscripten/val.h +++ b/system/include/emscripten/val.h @@ -21,7 +21,6 @@ namespace emscripten { EM_VAL _emval_eval_global_method(EM_VAL object, const char* objectName, const char* methodName); void _emval_set_property(EM_VAL object, const char* key, EM_VAL value); void _emval_set_property_by_int(EM_VAL object, long key, EM_VAL value); - unsigned int _emval_get_length(EM_VAL object); void _emval_as(EM_VAL value, TYPEID returnType); EM_VAL _emval_call( EM_VAL value, @@ -118,7 +117,7 @@ namespace emscripten { } unsigned int length() { - return internal::_emval_get_length(handle); + return get("length").as<unsigned int>(); } template<typename ...Args> |
