Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing unnecessary object merge

  • Loading branch information...
commit 85d8003e2b57b00041a5620255e3cb74e860c003 1 parent 8f1779f
@uditha-atukorala authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/xPagination.js
View
8 lib/xPagination.js
@@ -81,8 +81,8 @@ var xPagination = new Class({
next: function() {
if ( this._initialised && this.current_page < ( this.pages - 1 ) ) {
- this.elements.active.morph( Object.merge( {}, {left: this.coordinates.left.x, top: this.coordinates.left.y} ) );
- this.elements.right.morph( Object.merge( {}, {left: this.coordinates.active.x, top: this.coordinates.active.y} ) );
+ this.elements.active.morph( {left: this.coordinates.left.x, top: this.coordinates.left.y} );
+ this.elements.right.morph( {left: this.coordinates.active.x, top: this.coordinates.active.y} );
// move left
this.elements.left.setPosition( this.coordinates.right );
@@ -104,8 +104,8 @@ var xPagination = new Class({
if ( this._initialised && this.current_page > 0 ) {
// morph
- this.elements.active.morph( Object.merge( {}, {left: this.coordinates.right.x, top: this.coordinates.right.y} ) );
- this.elements.left.morph( Object.merge( {}, {left: this.coordinates.active.x, top: this.coordinates.active.y} ) );
+ this.elements.active.morph( {left: this.coordinates.right.x, top: this.coordinates.right.y} );
+ this.elements.left.morph( {left: this.coordinates.active.x, top: this.coordinates.active.y} );
// move left
this.elements.right.setPosition( this.coordinates.left );
Please sign in to comment.
Something went wrong with that request. Please try again.