Skip to content

Wrapping your Plugin's JavaScript

shazron edited this page Aug 13, 2012 · 6 revisions
// ///////////////////
(function(gap){
// ///////////////////

// YOUR CODE HERE! 
// NOTE: Replace any PhoneGap, Cordova or cordova references with "gap" variable above

// ///////////////////
})(window.PhoneGap || window.Cordova || window.cordova);
// ///////////////////
Clone this wiki locally