1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Delete two unused variables

Summary: `image` has been replaced with `active_image`. `imageData` is from a long time ago, I think.

Test Plan: Verified nothing seems to be broken.

Reviewers: chad, ljalonen

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5084
This commit is contained in:
epriestley 2013-02-23 06:28:09 -08:00
parent 7c49f2bf4f
commit 1e1ad070b6
2 changed files with 2 additions and 7 deletions

View file

@ -1873,7 +1873,7 @@ celerity_register_resource_map(array(
), ),
'javelin-behavior-pholio-mock-view' => 'javelin-behavior-pholio-mock-view' =>
array( array(
'uri' => '/res/23bf68aa/rsrc/js/application/pholio/behavior-pholio-mock-view.js', 'uri' => '/res/a6fae7ae/rsrc/js/application/pholio/behavior-pholio-mock-view.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(

View file

@ -12,8 +12,6 @@ JX.behavior('pholio-mock-view', function(config) {
var is_typing = false; var is_typing = false;
var wrapper = JX.$('mock-wrapper'); var wrapper = JX.$('mock-wrapper');
var image;
var imageData;
var startPos; var startPos;
var endPos; var endPos;
@ -75,7 +73,7 @@ JX.behavior('pholio-mock-view', function(config) {
function getRealXY(parent, point) { function getRealXY(parent, point) {
var pos = {x: (point.x - parent.x), y: (point.y - parent.y)}; var pos = {x: (point.x - parent.x), y: (point.y - parent.y)};
var dim = JX.Vector.getDim(image); var dim = JX.Vector.getDim(JX.$(config.mainID));
pos.x = Math.max(0, Math.min(pos.x, dim.x)); pos.x = Math.max(0, Math.min(pos.x, dim.x));
pos.y = Math.max(0, Math.min(pos.y, dim.y)); pos.y = Math.max(0, Math.min(pos.y, dim.y));
@ -94,9 +92,6 @@ JX.behavior('pholio-mock-view', function(config) {
JX.DOM.remove(selection_border); JX.DOM.remove(selection_border);
} }
image = JX.$(config.mainID);
imageData = JX.Stratcom.getData(image);
e.getRawEvent().target.draggable = false; e.getRawEvent().target.draggable = false;
is_dragging = true; is_dragging = true;