Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
ocd colons
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Sep 7, 2015
1 parent a78a59e commit e8cc7d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ locker.put('someKey', ['foo', 'bar']);
locker.put('someKey', function(current) {
current.push('baz');

return current
return current;
});

locker.get('someKey') // = ['foo', 'bar', 'baz']
locker.get('someKey'); // = ['foo', 'bar', 'baz']
```

If the current value is not already set then you can pass a third parameter as a default that will be returned instead. e.g.
Expand Down Expand Up @@ -300,7 +300,7 @@ locker.namespace('somethingElse').count();
You can determine whether an item exists in the current namespace via

```js
locker.has('someKey') // true or false
locker.has('someKey'); // true or false
// or
locker.namespace('foo').has('bar');

Expand Down Expand Up @@ -406,7 +406,7 @@ app.controller('AppCtrl', ['$scope', function ($scope) {

$scope.foo = ['bar', 'baz'];

locker.get('foo') // = ['bar', 'baz']
locker.get('foo'); // = ['bar', 'baz']

}]);
```
Expand All @@ -420,7 +420,7 @@ app.controller('AppCtrl', ['$scope', function ($scope) {

$scope.foo // = 'someDefault'

locker.get('foo') // = 'someDefault'
locker.get('foo'); // = 'someDefault'

}]);
```
Expand All @@ -435,7 +435,7 @@ app.controller('AppCtrl', ['$scope', function ($scope) {

$scope.foo // = undefined

locker.get('foo') // = undefined
locker.get('foo'); // = undefined

}]);
```
Expand Down

0 comments on commit e8cc7d5

Please sign in to comment.