body.touch .your-elem-selector {
overflow: hidden;
}
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
document.body.addEventListener('touchstart', function(e){ e.preventDefault(); });
<div data-ng-repeat="cock in cocks">
<p data-ng-bind="cock.title"></p>
<a href="" data-ng-click="removeCock($index)">×</a>
</div>
$scope.removeCock = function(index) {
$scope.cocks.splice(index, 1);
};
<div data-ng-repeat="cock in cocks">
<p data-ng-bind="cock.title"></p>
<a href="" data-ng-click="cocks.splice($index, 1)">×</a>
</div>
angular.module('yourapp').constant('routes', <?= json_encode($routes); ?>);
var feedback = {
text: {
ru: 'Отличная работа, доволен.',
en: 'Great work.'
},
client: {
ru: 'Вася Пупкин',
en: 'Vasya Poupkin'
},
images: [
'/img/2f3/2f32fawb5umaw95bm0a95ab2b2a09b2h.png',
'/img/2f3/2f32fawb5umaw95bm0a95ab2b2a09b2z.png',
],
shown: true
};
// Как хотите Вы
HTMLElement.prototype.MyMethod = function(value) {
this.innerHTML += value;
};
// Вариант с параметром
function MyMethodA(elem, value) {
elem.innerHTML += value;
}
// Вариант с подменой контекста
function MyMethodB(value) {
this.innerHTML += value;
}
// not good
var a = document.getElementsByTagName('div')[0].MyMethod(value);
// better
var b = MyMethodA(document.getElementsByTagName('div')[0], value);
// probably what you need
var c = MyMethodB.call(document.getElementsByTagName('div')[0], value);