summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm17
1 files changed, 17 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 88efb14..67c8714 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1366,6 +1366,23 @@ typedef std::map< unsigned long, _H<Source> > SourceMap;
return event;
}
++ (NSArray *) _attributeKeys {
+ return [NSArray arrayWithObjects:
+ @"message",
+ @"package",
+ @"type",
+ @"uri",
+ nil];
+}
+
+- (NSArray *) attributeKeys {
+ return [[self class] _attributeKeys];
+}
+
++ (BOOL) isKeyExcludedFromWebScript:(const char *)name {
+ return ![[self _attributeKeys] containsObject:[NSString stringWithUTF8String:name]] && [super isKeyExcludedFromWebScript:name];
+}
+
- (id) initWithMessage:(NSString *)message ofType:(NSString *)type {
if ((self = [super init]) != nil) {
message_ = message;