diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-02-06 10:46:49 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-06 10:46:49 +0100 |
commit | 339ebca759e3662e76553a2e7451c9664371986b (patch) | |
tree | 0cefa272fcd79fb8f54eb51523fb9db55763cf8a /src | |
parent | 66ca191ab2ba4e75da5e25d848ee4c404ceb68e9 (diff) | |
download | qtlocation-mapboxgl-339ebca759e3662e76553a2e7451c9664371986b.tar.gz |
allow more arguments, but require at least one
Diffstat (limited to 'src')
-rw-r--r-- | src/node_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_map.cpp b/src/node_map.cpp index 24672af66a..8cf9ee9b6a 100644 --- a/src/node_map.cpp +++ b/src/node_map.cpp @@ -68,7 +68,7 @@ const std::string StringifyStyle(v8::Handle<v8::Value> styleHandle) { NAN_METHOD(NodeMap::Load) { NanScope(); - if (args.Length() != 1) { + if (args.Length() < 1) { return NanThrowError("Requires a map style as first argument"); } |