Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 56a7590

Browse files
committed
Derp
1 parent 45da5d1 commit 56a7590

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-service-core",
3-
"version": "0.0.32",
3+
"version": "0.0.33",
44
"homepage": "http://ionic.io",
55
"authors": [
66
"Max Lynch <[email protected]>",

ionic-core.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ function($q, $timeout, $http, persistentStorage, $ionicApp) {
263263
});
264264
}
265265

266+
function storeOrDirty(key, value) {
267+
// Store the key on the user object and return whether something changed
268+
if (!angular.equals(user[key], value)) {
269+
user[key] = value;
270+
return true;
271+
}
272+
return false;
273+
}
274+
266275
return {
267276
/**
268277
* Push a value to the array with the given key.

0 commit comments

Comments
 (0)