mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user