Added constructor to lines up better with the way the core PhoneGap code is written

This commit is contained in:
Daniel Tizon
2011-08-31 11:48:39 +02:00
parent 0984e99274
commit fffcd0349d

View File

@@ -121,4 +121,9 @@ isBound : function(argument,successCallback, failureCallback) {
return PhoneGap.exec(successCallback, failureCallback, 'BluetoothPlugin', 'isBound', [argument]);
}
};
};
PhoneGap.addConstructor(function() {
PhoneGap.addPlugin('Bluetooth', new Bluetooth());
});