File tree 2 files changed +9
-8
lines changed 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change
1
+ == 1.3.8
2
+
3
+ * fix removal of hidden fields in all browsers.
4
+
1
5
== 1.3.7
2
6
3
- * Fix removal of hidden fields in IE9 .
7
+ * fix removal of hidden fields in ie9 .
4
8
5
9
== 1.3.6
6
10
Original file line number Diff line number Diff line change 8
8
9
9
var Braintree = {
10
10
sjcl : sjcl ,
11
- version : "1.3.7 "
11
+ version : "1.3.8 "
12
12
} ;
13
13
14
14
Braintree . generateAesKey = function ( ) {
@@ -157,18 +157,15 @@ Braintree.EncryptionClient = function (publicKey) {
157
157
self . encryptForm = function ( form ) {
158
158
var element , encryptedValue ,
159
159
fieldName , hiddenField ,
160
- i , inputs , bodyElement ;
160
+ i , inputs ;
161
161
162
162
form = extractForm ( form ) ;
163
163
inputs = findInputs ( form ) ;
164
164
165
165
while ( hiddenFields . length > 0 ) {
166
- bodyElement = hiddenFields [ 0 ] . ownerDocument . body ;
167
-
168
- if ( bodyElement . contains && bodyElement . contains ( hiddenFields [ 0 ] ) ) {
166
+ try {
169
167
form . removeChild ( hiddenFields [ 0 ] ) ;
170
- }
171
-
168
+ } catch ( err ) { }
172
169
hiddenFields . splice ( 0 , 1 ) ;
173
170
}
174
171
You can’t perform that action at this time.
0 commit comments