Permalink
Browse files

Update iOS MapKit.js to have proper ref to cordovaRef

  • Loading branch information...
1 parent 254a0b5 commit 7817afe4d523a8607bd29a06f152d2296f6a376e Becky Gibson committed Sep 17, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 iOS/MapKit/MapKit.js
View
@@ -1,4 +1,7 @@
-(function(window) {
+
+(function() {
+
+var cordovaRef = window.PhoneGap || window.Cordova || window.cordova; // old to new fallbacks
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
@@ -70,4 +73,4 @@
window.plugins.mapKit = new MapKit();
});
-}(window));
+})();

0 comments on commit 7817afe

Please sign in to comment.