Permalink
Browse files

Merge pull request #1 from GunioRobot/clean

Hi! I cleaned up your code for you!
  • Loading branch information...
2 parents ca2ab90 + 2a3b496 commit 2fb35f5359322e82c8e6f309c8762874bd39704f @herkulano committed Oct 31, 2011
Showing with 28 additions and 8 deletions.
  1. +20 −0 .gitignore
  2. +3 −3 GAnalytics.h
  3. +1 −1 GAnalytics.js
  4. +4 −4 GAnalytics.m
View
@@ -0,0 +1,20 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+
+# Logs and databases #
+######################
+*.log
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
@@ -6,15 +6,15 @@
#import "PhoneGapCommand.h"
@interface GAnalytics : PhoneGapCommand {
-
+
}
- (id)initWithWebView:(UIWebView *)theWebView;
-- (void)trackPage:(NSMutableArray*)args
+- (void)trackPage:(NSMutableArray*)args
withDict:(NSMutableDictionary*)options;
-- (void)trackEvent:(NSMutableArray*)args
+- (void)trackEvent:(NSMutableArray*)args
withDict:(NSMutableDictionary*)options;
@end
View
@@ -25,7 +25,7 @@ GAnalytics.prototype.trackEvent = function(category, action, opt_label, opt_valu
GAnalytics.install = function()
{
if (!window.plugins) {
- window.plugins = {};
+ window.plugins = {};
}
if (!window.plugins.GA) {
window.plugins.GA = new GAnalytics();
View
@@ -15,11 +15,11 @@ -(id)initWithWebView:(UIWebView *)theWebView
[[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-XXXXXXXX-X"
dispatchPeriod:kGANDispatchPeriodSec
delegate:nil];
-
+
return self;
}
-- (void)trackPage:(NSMutableArray*)args
+- (void)trackPage:(NSMutableArray*)args
withDict:(NSMutableDictionary*)options
{
// URL must start with /
@@ -32,9 +32,9 @@ - (void)trackPage:(NSMutableArray*)args
}
-- (void)trackEvent:(NSMutableArray*)args
+- (void)trackEvent:(NSMutableArray*)args
withDict:(NSMutableDictionary*)options
-{
+{
NSError *error;
if (![[GANTracker sharedTracker] trackEvent:[args objectAtIndex:0]
action:[args objectAtIndex:1]

0 comments on commit 2fb35f5

Please sign in to comment.