Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function hasAttributeChanged(key:String, value:Dynamic):Bool {
- var appboyKey = toAppboyStorageKey(key);
- if(!_storage.has(appboyKey)) {
- return true;
- }
- if(Std.is(value, String)) {
- return _storage.getString(appboyKey) != value;
- }
- if(Std.is(value, Int)) {
- return _storage.getInt(appboyKey) != value;
- }
- if(Std.is(value, Float)) {
- return !CsMath.floatEquals(_storage.getFloat(appboyKey), value);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement