Commit 3cc4a663 by Valera Rozuvan Committed by Alexander Kryklia

Refactoring and cleaning of code.

parent a228c163
......@@ -26,8 +26,10 @@ define(['logme'], function (logme) {
state.baseImageEl.attr('src', state.config.baseImage);
state.baseImageEl.load(function () {
baseImageElContainer.css('width', this.width);
baseImageElContainer.css('height', this.height);
baseImageElContainer.css({
'width': this.width,
'height': this.height
});
state.baseImageEl.appendTo(baseImageElContainer);
baseImageElContainer.appendTo(state.containerEl);
......
......@@ -142,7 +142,7 @@ define(['logme'], function (logme) {
continue;
}
draggable.moveDraggableToTarget(target);
draggable.moveDraggableTo('target', target);
}
c1 += 1;
......@@ -170,7 +170,7 @@ define(['logme'], function (logme) {
continue;
}
draggable.moveDraggableToXY({
draggable.moveDraggableTo('XY', {
'x': answer.draggables[c1][draggableId][0],
'y': answer.draggables[c1][draggableId][1]
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment