main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
422 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = cursor;
|
---|
| 7 | var prefixes = ['-webkit-', '-moz-', ''];
|
---|
| 8 |
|
---|
| 9 | var values = {
|
---|
| 10 | 'zoom-in': true,
|
---|
| 11 | 'zoom-out': true,
|
---|
| 12 | grab: true,
|
---|
| 13 | grabbing: true
|
---|
| 14 | };
|
---|
| 15 |
|
---|
| 16 | function cursor(property, value) {
|
---|
| 17 | if (property === 'cursor' && values.hasOwnProperty(value)) {
|
---|
| 18 | return prefixes.map(function (prefix) {
|
---|
| 19 | return prefix + value;
|
---|
| 20 | });
|
---|
| 21 | }
|
---|
| 22 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.