Skip to content

Commit a8e1eaa

Browse files
committed
clean AngularJS references; bump to 0.0.2
1 parent a9233d5 commit a8e1eaa

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@
1515
*
1616
*/
1717

18-
19-
var expand = function(keyChain)
18+
module.exports = function(keyChain)
2019
{
2120
var newArray = [];
2221
if(Array.isArray(keyChain))
2322
{
2423
for(var i = 0; i < keyChain.length; i++)
2524
{
2625
var value = keyChain[i];
27-
if(angular.isString(value))
26+
if(typeof value === 'string')
2827
{
2928
if(value.indexOf(".") != -1)
3029
{
@@ -41,11 +40,9 @@ var expand = function(keyChain)
4140
}
4241
}
4342
}
44-
else if(angular.isString(keyChain))
43+
else if(typeof keyChain === 'string')
4544
{
4645
newArray = keyChain.split(".");
4746
}
4847
return newArray;
4948
};
50-
51-
module.exports = expand;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "geodash-expand",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "The `expand` function for [GeoDash](http://geodash.io) that is used during building and runtime.",
55
"keywords": [
66
"map",
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"build:docs": "mkdir docs; gulp docs",
1414
"build": "npm run build:docs",
15-
"jshint": "jshint src",
15+
"jshint": "jshint index.js",
1616
"tests": "npm run jshint"
1717
},
1818
"repository": {

0 commit comments

Comments
 (0)