File: tests/hacks.ts

Recommend this page to a friend!
  Classes of Logik group   Angular Moment Picker   tests/hacks.ts   Download  
File: tests/hacks.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Angular Moment Picker
Pick times and dates in Angular.js applications
Author: By
Last change: Update of tests/hacks.ts
Date: 2 years ago
Size: 406 bytes
 

Contents

Class file image Download
// extending jQLite angular.element.prototype.find = function (query: string) { // tslint:disable-line:only-arrow-functions return angular.element(this[0].querySelectorAll(query)); }; // fix PhantomJS missing blur-on-clickout features let lastFocused; angular.element(document.body).on('click', (event) => { if (lastFocused) lastFocused.trigger('blur'); lastFocused = angular.element(event.target); });