Merge pull request #479 from chbrody/chbrody-datepicker-fix

Fix iOS/DatePicker/DatePicker.js for Cordova 1.5 and 1.6
This commit is contained in:
Randy McMillan
2012-04-13 14:15:19 -07:00

View File

@@ -3,7 +3,14 @@
Copyright (c) Greg Allen 2011
MIT Licensed
**/
if (typeof Cordova !== "undefined") {
if (!window.plugins.datePicker) {
/* shim to work in 1.5 and 1.6 */
if (!window.Cordova) {
window.Cordova = cordova;
};
/**
* Constructor
*/