diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-03-16 15:12:33 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:56 +0000 |
commit | dc63e78f274cc5733250b137b1ad09ea248445ff (patch) | |
tree | a282d1bba36cf9a444a8e1f8550e1d268abe0b25 /UICaboodle/BrowserView.m | |
parent | e590d1ff0e28b577012d6d98d9600d2f86a7459f (diff) |
That was at least interesting.
Diffstat (limited to 'UICaboodle/BrowserView.m')
-rw-r--r-- | UICaboodle/BrowserView.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.m b/UICaboodle/BrowserView.m index 0f95a04..3a4b779 100644 --- a/UICaboodle/BrowserView.m +++ b/UICaboodle/BrowserView.m @@ -70,6 +70,22 @@ } return self; } ++ (NSArray *) _attributeKeys { + return [NSArray arrayWithObjects:@"device", nil]; +} + +- (NSArray *) attributeKeys { + return [[self class] _attributeKeys]; +} + ++ (BOOL) isKeyExcludedFromWebScript:(const char *)name { + return ![[self _attributeKeys] containsObject:[NSString stringWithUTF8String:name]] && [super isKeyExcludedFromWebScript:name]; +} + +- (NSString *) device { + return [[UIDevice currentDevice] uniqueIdentifier]; +} + + (NSString *) webScriptNameForSelector:(SEL)selector { if (selector == @selector(close)) return @"close"; |