Skip to content

Commit

Permalink
build(v0.1.3): bump version 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Oct 13, 2014
1 parent d4e3f76 commit 52d04ad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular-local-storage
=====================

An Angular module that gives you access to the browsers local storage, **v0.1.2**
An Angular module that gives you access to the browsers local storage, **v0.1.3**

[![Build Status](https://secure.travis-ci.org/grevory/angular-local-storage.png?branch=master)](https://travis-ci.org/grevory/)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-local-storage",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
"authors": [
"grevory <[email protected]>"
Expand Down
15 changes: 6 additions & 9 deletions dist/angular-local-storage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* An Angular module that gives you access to the browsers local storage
* @version v0.1.2 - 2014-10-10
* @version v0.1.3 - 2014-10-14
* @link https://github.com/grevory/angular-local-storage
* @author grevory <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -394,11 +394,8 @@ angularLocalStorage.provider('localStorageService', function() {

// Add a listener on scope variable to save its changes to local storage
// Return a function which when called cancels binding
var bindToScope = function(scope, scopeKey, def, lsKey) {
if (!lsKey) {
lsKey = scopeKey;
}

var bindToScope = function(scope, key, def, lsKey) {
lsKey = lsKey || key;
var value = getFromLocalStorage(lsKey);

if (value === null && isDefined(def)) {
Expand All @@ -407,11 +404,11 @@ angularLocalStorage.provider('localStorageService', function() {
value = extend(def, value);
}

$parse(scopeKey).assign(scope, value);
$parse(key).assign(scope, value);

return scope.$watchCollection(scopeKey, function(newVal) {
return scope.$watch(key, function(newVal) {
addToLocalStorage(lsKey, newVal);
});
}, isObject(scope[key]));
};

// Return localStorageService.length
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-local-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-local-storage",
"version": "0.1.2",
"version": "0.1.3",
"description": "An Angular module that gives you access to the browsers local storage",
"homepage": "https://github.com/grevory/angular-local-storage",
"main": "./dist/angular-local-storage.js",
Expand Down

0 comments on commit 52d04ad

Please sign in to comment.