Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Wrapping your Plugin's JavaScript

shazron edited this page Sep 4, 2012 · 6 revisions
// ///////////////////
(function(gap){
// ///////////////////

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

// the variables below support old to new references ///////////////////
})(window.PhoneGap || window.Cordova || window.cordova);
// ///////////////////

RECOMMENDED FOR 1.6 or greater: Defining Your Plugin as a Cordova Module

Clone this wiki locally