/* Spinner/Loader Cordova Plugin - JavaScript side of the bridge to iOS
*
* @author Ally Ogilvie
* @copyright WizCorp Inc. [ Incorporated Wizards ] 2012
* @file JavaScript wizSpinner for Cordova
*
*/

/*

============= example code ====================

function shouldRotateToOrientation (orientation)
{
if (deviceIsReady == true) {
switch (orientation) {
case 0:
// portrait normal
window.wizSpinner.rotate(1);
return true;
break;
case 90:
// landscape left
window.wizSpinner.rotate(3);
return true;
break;
case -90:
// landscape right
window.wizSpinner.rotate(4);
return true;
break;
case 180:
// portrait upside down
return false;
break
}
}
}


function onDeviceReady()
{
deviceIsReady = true;
}
*/

var wizSpinner = {


    create: function(s,f,a) {
        if(typeof(a) == "undefined") {
			return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', []);
		} else {
			return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', [a]);
		}
        
    },
    
    show: function(s,f,a) {

        if(typeof(a) == "undefined") {
            
            return cordova.exec(s, f, 'wizSpinnerPlugin', 'show', []);
		} else {
            return cordova.exec(s, f, 'wizSpinnerPlugin', 'show', [a]);
        }
        

    },
    
    hide: function(s,f) {

        return cordova.exec(null, null, 'wizSpinnerPlugin', 'hide', []);
        
    },
    
    rotate: function(orientation) {
        cordova.exec(null, null, 'wizSpinnerPlugin', 'rotate', [orientation]);
    }


};
@@ -722,22 +722,20 @@
 %7B%0A%0A%0A    
-create
+show
 : functi
@@ -741,245 +741,15 @@
 ion(
-s,f,a) %7B%0A        if(typeof(a) == %22undefined%22) %7B%0A%09%09%09return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', %5B%5D);%0A%09%09%7D else %7B%0A%09%09%09return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', %5Ba%5D);%0A%09%09%7D%0A        %0A    %7D,%0A    %0A    show: function(s,f,a
+options
 ) %7B%0A
@@ -767,17 +767,23 @@
 (typeof(
-a
+options
 ) == %22un
@@ -831,36 +831,42 @@
 rn cordova.exec(
-s, f
+null, null
 , 'wizSpinnerPlu
@@ -931,12 +931,18 @@
 xec(
-s, f
+null, null
 , 'w
@@ -968,17 +968,23 @@
 show', %5B
-a
+options
 %5D);%0A    
@@ -1034,11 +1034,8 @@
 ion(
-s,f
 ) %7B%0A

Update v1.7