summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-06 10:46:49 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-06 10:46:49 +0100
commit339ebca759e3662e76553a2e7451c9664371986b (patch)
tree0cefa272fcd79fb8f54eb51523fb9db55763cf8a /src
parent66ca191ab2ba4e75da5e25d848ee4c404ceb68e9 (diff)
downloadqtlocation-mapboxgl-339ebca759e3662e76553a2e7451c9664371986b.tar.gz
allow more arguments, but require at least one
Diffstat (limited to 'src')
-rw-r--r--src/node_map.cpp2
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");
}