Skip to content

Commit

Permalink
Linting and UT fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Negometyanov committed Nov 23, 2015
1 parent 4609532 commit c9254e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion filer/static/filer/js/addons/focal-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var Cl = window.Cl || {};
imageSelector: '.js-focal-point-image',
circleSelector: '.js-focal-point-circle',
locationSelector: '.js-focal-point-location',
draggableClass: 'ui-draggable',
hiddenClass: 'hidden'
},
_init: function (container) {
Expand Down Expand Up @@ -105,7 +106,9 @@ var Cl = window.Cl || {};
this.image.on('load', this._onImageLoaded);
},
destroy: function () {
this.circle.draggable('disable');
if (this.circle.hasClass(this.options.draggableClass)) {
this.circle.draggable('disable');
}

this.options = null;

Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var PROJECT_PATH = {
'sass': PROJECT_ROOT + '/filer/private/sass/',
'css': PROJECT_ROOT + '/filer/static/filer/css/',
'js': PROJECT_ROOT + '/filer/static/filer/js/',
'tests': PROJECT_ROOT + '/filer/tests/frontend/',
'tests': PROJECT_ROOT + '/filer/tests/frontend/'
};

var PROJECT_PATTERNS = {
Expand Down

0 comments on commit c9254e1

Please sign in to comment.