Skip to content

Commit

Permalink
Make Point.js compatible with strict PhantomJS parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed May 30, 2014
1 parent fff464d commit 2264388
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Point.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Parts Copyright (C) 2011, Alex Russell (slightlyoff@chromium.org)

(function(c) {

"use strict";
c.Point = c.inherit({
initialize: function(x, y, suffix) {
if (x instanceof c.Variable) {
Expand All @@ -28,20 +28,20 @@ c.Point = c.inherit({
},

get x() { return this._x; },
set x(x) {
if (x instanceof c.Variable) {
this._x = x;
set x(xVar) {
if (xVar instanceof c.Variable) {
this._x = xVar;
} else {
this._x.value = x;
this._x.value = xVar;
}
},

get y() { return this._y; },
set y(y) {
if (y instanceof c.Variable) {
this._y = y;
set y(yVar) {
if (yVar instanceof c.Variable) {
this._y = yVar;
} else {
this._y.value = y;
this._y.value = yVar;
}
},

Expand Down

0 comments on commit 2264388

Please sign in to comment.