dont break older versions
This commit is contained in:
parent
b752fcd12e
commit
f4675b5d54
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ Bing.prototype.search = Bing.prototype.web;
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
Bing.prototype.images = function(query, callback, options) {
|
Bing.prototype.images = function(query, callback, options) {
|
||||||
if (options && options.imagefilters) {
|
if (options
|
||||||
|
&& options.imagefilters
|
||||||
|
&& typeof options.imagefilters === 'object') {
|
||||||
var filterQuery = '';
|
var filterQuery = '';
|
||||||
var filters = Object.keys(options.imagefilters);
|
var filters = Object.keys(options.imagefilters);
|
||||||
filters.map(function(key, i) {
|
filters.map(function(key, i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue