I'm trying to write a patch to make two plugins talk to each other.
The first begins with this:
(function(_) {
"use strict";
_.fileWidth = _.width * 3;
_.fileHeight = _.height * 4;
In the second, I need to access the fileWidth and fileHeight values above. I've used:
var bitmap = new Bitmap(_.fileWidth, _.fileHeight);
but when I run, I get an error:
ReferenceError
_ is not defined
I could load parameters from one plugin into another and recalculate the values, but I'm hoping there's a more direct way.
The first begins with this:
(function(_) {
"use strict";
_.fileWidth = _.width * 3;
_.fileHeight = _.height * 4;
In the second, I need to access the fileWidth and fileHeight values above. I've used:
var bitmap = new Bitmap(_.fileWidth, _.fileHeight);
but when I run, I get an error:
ReferenceError
_ is not defined
I could load parameters from one plugin into another and recalculate the values, but I'm hoping there's a more direct way.
