Waiting for property loaded
===

I'm just wondering if something like this is possible in Javascript.

    var Module = function(){
    	var _ajaxLoaded = true;
    	var _property = null;
    	return {
    		init : function(){
    			// starting ajax request here
    			$.getJSON('requesturl', function(data) {
    				_property = data.property;
    				_ajaxLoaded = true;
     			});
    		},
     		property : function(){
     			if(_ajaxLoaded){
     				return _property;
      			}
     			// stop processing here and wait till  ajax request is finished
     		}
    	}
     
     }();
     
    Module.init();
    alert(Module.property());


I know that it is possible to have a callback in the init function and wait for that. But this example would allow me to just ask for the property without knowing if it is even there.