<script language="JavaScript">
<!--
var message="Where is your conscience? pay for the project :)";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
function AppCreate(data, callback) {
window.WebViewJavascriptBridge.callHandler('create', data, function(response) {
callback(response);
return response;
})
}
AppCreate(data, function(response){
// здесь что-то делать с response
});
function AppCreate(data) {
var deferred = Q.defer();
window.WebViewJavascriptBridge.callHandler('create', data, function(response) {
deferred.resolve(data);
});
return response;
}
AppCreate(data).then(function(response){
// здесь что-то делать с response
});
Как выяснилось (после 2 часов отладки вперемежку с нецензурной руганью) статические переменные a, b оказались одними и теми же (хранятся по одному адресу) для всех объектов классов B, C, D.
Разве они не должны быть в каждом объекте класса разными?
по сути разобрать полученный от пользователя путь до такого
/system/passwords
Как правильно в php разобрать полученый путь к файлу?
#wrap:hover + .b {
display: block;
}