Skip to content

Commit 35241a2

Browse files
committed
Ensure flip() has converted to a keyedSeq first
1 parent d23c773 commit 35241a2

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

dist/Immutable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ var $Sequence = Sequence;
461461
return this.toKeyedSeq().reverse().findKey(predicate, thisArg);
462462
},
463463
flip: function() {
464-
var sequence = this;
465-
var flipSequence = makeSequence();
464+
var sequence = this.toKeyedSeq();
465+
var flipSequence = sequence.__makeSequence();
466466
flipSequence.length = sequence.length;
467467
flipSequence.flip = (function() {
468468
return sequence;

0 commit comments

Comments
 (0)