mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 10:04:42 +00:00
add spaces before {
This commit is contained in:
parent
fd38b8f4a4
commit
54f9c0428f
2 changed files with 4 additions and 4 deletions
|
|
@ -138,7 +138,7 @@ fabric.Pattern = fabric.util.createClass(/** @lends fabric.Pattern.prototype */
|
|||
: this.source;
|
||||
|
||||
// if the image failed to load, return, and allow rest to continue loading
|
||||
if (!source){
|
||||
if (!source) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@
|
|||
* @return {String} Source of an image
|
||||
*/
|
||||
getSrc: function() {
|
||||
if (this.getElement()){
|
||||
if (this.getElement()) {
|
||||
return this.getElement().src || this.getElement()._src;
|
||||
}
|
||||
},
|
||||
|
|
@ -283,7 +283,7 @@
|
|||
*/
|
||||
applyFilters: function(callback) {
|
||||
|
||||
if (!this._originalElement){
|
||||
if (!this._originalElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
options || (options = { });
|
||||
this.setOptions(options);
|
||||
this._setWidthHeight(options);
|
||||
if (this._element){
|
||||
if (this._element) {
|
||||
this._element.crossOrigin = this.crossOrigin;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue