Created
January 17, 2014 10:21
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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