From 3389b3e235e40f995fdef67a7d41397ab5dcb18d Mon Sep 17 00:00:00 2001 From: Nicolas Thouvenin Date: Wed, 15 May 2013 17:21:13 +0200 Subject: [PATCH] float is number in js --- lib/sphinxapi.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sphinxapi.js b/lib/sphinxapi.js index 001e90c..7f403af 100644 --- a/lib/sphinxapi.js +++ b/lib/sphinxapi.js @@ -245,7 +245,7 @@ SphinxClient.prototype.SetServer = function (host, port) { }; SphinxClient.prototype.SetConnectTimeout = function (timeout ) { var self = this - assert.equal(typeof timeout, 'float') + assert.equal(typeof timeout, 'number') self._timeout = Math.max(0.001, timeout); }; SphinxClient.prototype.SetLimits = function (offset, limit, maxmatches, cutoff) { @@ -392,8 +392,8 @@ SphinxClient.prototype.SetGeoAnchor = function (attrlat, attrlong, latitude, lon var self = this assert.equal(typeof attrlat, 'string') assert.equal(typeof attrlong, 'string') - assert.equal(typeof latitude, 'float') - assert.equal(typeof longitude, 'float') + assert.equal(typeof latitude, 'number') + assert.equal(typeof longitude, 'number') self._anchor['attrlat'] = attrlat self._anchor['attrlong'] = attrlong self._anchor['lat'] = latitude diff --git a/package.json b/package.json index 5ae40fd..05b1a32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sphinxapi", - "version": "1.0.10", + "version": "1.0.11", "author": "Nicolas Thouvenin ", "contributors": [ {