how to set and get parameter value?
I have function like this:
var File = function(){
"use strict";
var readFile = function(element){
console.log(element); //i want get paramater here
}
return {
init:function(){readFile()}
}
}();
and i implement this function like:
File.init('#image');
but i still get undefined
initmethod has no parameter, and doesn't pass anything toreadFile()