Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.56 KB | None | 0 0
  1.  private function hasAttributeChanged(key:String, value:Dynamic):Bool {
  2.         var appboyKey = toAppboyStorageKey(key);
  3.  
  4.         if(!_storage.has(appboyKey)) {
  5.             return true;
  6.         }
  7.  
  8.         if(Std.is(value, String)) {
  9.             return _storage.getString(appboyKey) != value;
  10.         }
  11.  
  12.         if(Std.is(value, Int)) {
  13.             return _storage.getInt(appboyKey) != value;
  14.         }
  15.  
  16.         if(Std.is(value, Float)) {
  17.             return !CsMath.floatEquals(_storage.getFloat(appboyKey), value);
  18.         }
  19.  
  20.         return true;
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement