1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Fix touch coordinates on Yoga Tablet 8.

This commit is contained in:
Simo Kinnunen 2014-10-29 15:13:14 +09:00
parent 758e43e2e8
commit 33d4c70820
2 changed files with 44 additions and 5 deletions

View file

@ -0,0 +1,16 @@
var syrup = require('syrup')
module.exports = syrup.serial()
.dependency(require('./data'))
.define(function(options, data) {
return {
has: function(flag) {
return data && data.flags && !!data.flags[flag]
}
, get: function(flag, defaultValue) {
return data && data.flags && data.flags[flag] !== void 0
? data.flags[flag]
: defaultValue
}
}
})