Skip to content

Instantly share code, notes, and snippets.

View jodaka's full-sized avatar

Anton Kudris jodaka

View GitHub Profile
(function(angular) {
'use strict';
var directives = angular.module('app.directives', []);
directives.directive('ngTap', function() {
return function(scope, element, attrs) {
var tapping;
tapping = false;
element.bind('touchstart', function(e) {
@jodaka
jodaka / handlebars.object_helpers.js
Last active December 17, 2015 14:49 — forked from strathmeyer/handlebars.object_helpers.js
now works with latest version of handlebars
// HELPER: #key_value
//
// Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}}
//
// Iterate over an object, setting 'key' and 'value' for each property in
// the object.
Handlebars.registerHelper( "key_value", function ( obj, options ) {
var buffer = "",
key;