Skip to content

Commit

Permalink
Merge pull request #2719 from asturur/textflip
Browse files Browse the repository at this point in the history
Textflip
  • Loading branch information
kangax committed Dec 30, 2015
2 parents 7235f36 + b8b8cad commit 09dd12b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/mixins/itext_click_behavior.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot

width = lineLeftOffset * this.scaleX;

if (this.flipX) {
// when oject is horizontally flipped we reverse chars
// we should reverse also style or do not revers at all.
this._textLines[i] = line.reverse().join('');
}

for (var j = 0, jlen = line.length; j < jlen; j++) {

prevWidth = width;
Expand Down
2 changes: 1 addition & 1 deletion src/shapes/image.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
type: 'image',

/**
* crossOrigin value (one of "", "anonymous", "allow-credentials")
* crossOrigin value (one of "", "anonymous", "use-credentials")
* @see https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes
* @type String
* @default
Expand Down

0 comments on commit 09dd12b

Please sign in to comment.