Skip to content

Commit

Permalink
only trigger digest cycle if not already in progress; bump to 0.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
wyrfel committed Jan 24, 2018
1 parent 3edc8b1 commit 3d57c03
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theiconic-ngstorage",
"version": "0.3.13",
"version": "0.3.14",
"main": "./ngStorage.js",
"keywords": [
"angular",
Expand Down
4 changes: 3 additions & 1 deletion ngStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@

_last$storage = copy($storage);

$rootScope.$apply();
if (!$rootScope.$$phase) {
$rootScope.$apply();
}
}
});

Expand Down
2 changes: 1 addition & 1 deletion ngStorage.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
Expand Up @@ -22,7 +22,7 @@
"grunt-cli": "^0.1.11",
"grunt-contrib-uglify": "^0.x",
"grunt-karma": "^0.x",
"karma": "^0.12.31",
"karma": "^0.12.37",
"karma-chrome-launcher": "^0.2.0",
"karma-firefox-launcher": "^0.1.3",
"karma-mocha": "^0.2.0",
Expand Down

0 comments on commit 3d57c03

Please sign in to comment.