зеркало из
1
0
Форкнуть 0
This commit is contained in:
Braintree 2013-11-06 16:03:13 +00:00
Родитель 7132fff7a7
Коммит 34915e7296
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,7 @@
== 1.3.7
* Fix removal of hidden fields in IE9.
== 1.3.6
* Fix global variable creation

Просмотреть файл

@ -8,7 +8,7 @@
var Braintree = {
sjcl: sjcl,
version: "1.3.6"
version: "1.3.7"
};
Braintree.generateAesKey = function () {
@ -157,15 +157,15 @@ Braintree.EncryptionClient = function (publicKey) {
self.encryptForm = function (form) {
var element, encryptedValue,
fieldName, hiddenField,
i, inputs, ownerDocument;
i, inputs, bodyElement;
form = extractForm(form);
inputs = findInputs(form);
while (hiddenFields.length > 0) {
ownerDocument = hiddenFields[0].ownerDocument;
bodyElement = hiddenFields[0].ownerDocument.body;
if (ownerDocument.contains && ownerDocument.contains(hiddenFields[0])) {
if (bodyElement.contains && bodyElement.contains(hiddenFields[0])) {
form.removeChild(hiddenFields[0]);
}