Skip to content

Instantly share code, notes, and snippets.

@dhilipsiva
Created January 17, 2014 10:21
Show Gist options
  • Save dhilipsiva/8471220 to your computer and use it in GitHub Desktop.
Save dhilipsiva/8471220 to your computer and use it in GitHub Desktop.
I could not access the required variable in the block as shown. I don't understand why.
define("appkit/controllers/me", ["appkit/utils/uploader", "exports"],
function (__dependency1__, __exports__) {
"use strict";
var Uploader = __dependency1__["default"];
var MeController;
MeController = Em.ObjectController.extend({
username: null,
actions: {
uploadProfilePic: function ($el) {
/*
* PROBLEM:
*
* I dont understand why variable `Uploader` is not accessible over here.
* Could some one please explain?
*
*/
uploader = new Uploader(); // This line says "ReferenceError: Uploader is not defined".
}
}
});
__exports__["default"] = MeController;;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment