src/display/screen.js in entityjs-0.3.2 vs src/display/screen.js in entityjs-0.4.0
- old
+ new
@@ -10,12 +10,12 @@
pos:function(x, y){
if(!arguments.length){
return this;
}
- if(arguments.length == 1){
- y = x.posY;
- x = x.posX;
+ if(re.is(x,'object')){
+ y = x.posY;
+ x = x.posX;
}
this.posX = x - this.regX;
this.posY = y - this.regY;
\ No newline at end of file