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:
@@ -1873,7 +1873,7 @@ celerity_register_resource_map(array(
|
||||
),
|
||||
'javelin-behavior-pholio-mock-view' =>
|
||||
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',
|
||||
'requires' =>
|
||||
array(
|
||||
|
||||
@@ -12,8 +12,6 @@ JX.behavior('pholio-mock-view', function(config) {
|
||||
var is_typing = false;
|
||||
|
||||
var wrapper = JX.$('mock-wrapper');
|
||||
var image;
|
||||
var imageData;
|
||||
var startPos;
|
||||
var endPos;
|
||||
|
||||
@@ -75,7 +73,7 @@ JX.behavior('pholio-mock-view', function(config) {
|
||||
|
||||
function getRealXY(parent, point) {
|
||||
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.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);
|
||||
}
|
||||
|
||||
image = JX.$(config.mainID);
|
||||
imageData = JX.Stratcom.getData(image);
|
||||
|
||||
e.getRawEvent().target.draggable = false;
|
||||
is_dragging = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user