add spaces before {

This commit is contained in:
Max Kaplan 2014-03-07 17:32:09 -05:00
parent fd38b8f4a4
commit 54f9c0428f
2 changed files with 4 additions and 4 deletions

View file

@ -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 '';
}

View file

@ -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;
}
},