Skip to content

Commit

Permalink
Released 0.5.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreavis committed Dec 1, 2017
1 parent 2dabac9 commit 2a9c84e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sifter",
"keywords": ["search","filter","sift","data","results","match","sort","autocomplete"],
"description": "A library for textually searching arrays and hashes of objects by property (or multiple properties). Designed specifically for autocomplete.",
"version": "0.5.2",
"version": "0.5.3",
"license": "Apache License, Version 2.0",
"readmeFilename": "README.md",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"autocomplete"
],
"description": "A library for textually searching arrays and hashes of objects by property (or multiple properties). Designed specifically for autocomplete.",
"version": "0.5.2",
"version": "0.5.3",
"license": "Apache-2.0",
"author": "Brian Reavis <brian@thirdroute.com>",
"main": "./sifter.js",
Expand Down
12 changes: 6 additions & 6 deletions sifter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* sifter.js
* Copyright (c) 2013-2017 Brian Reavis & contributors
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
Expand Down Expand Up @@ -421,11 +421,11 @@
* @return {Object} The resolved property value
*/
var getattr = function(obj, name, nesting) {
if (!obj || !name) return;
if (!nesting) return obj[name];
var names = name.split(".");
while(names.length && (obj = obj[names.shift()]));
return obj;
if (!obj || !name) return;
if (!nesting) return obj[name];
var names = name.split(".");
while(names.length && (obj = obj[names.shift()]));
return obj;
};

var trim = function(str) {
Expand Down

0 comments on commit 2a9c84e

Please sign in to comment.