Skip to content

Commit 563e3c4

Browse files
author
AMJones
committed
Package name change, updated dependency.
1 parent e7f43ae commit 563e3c4

6 files changed

Lines changed: 92 additions & 21 deletions

File tree

composer.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "exactquery/poly-pointer",
2+
"name": "deviscoding/poly-pointer",
33
"description": "Vanilla Javascript psuedo-polyfill for Media Query Level 4's '(pointer:coarse)'",
44
"keywords": [
55
"polyfill",
@@ -8,18 +8,22 @@
88
"coarse",
99
"touch",
1010
"metro",
11-
"tablet"
11+
"tablet",
12+
"exactquery"
1213
],
13-
"version": "1.0.2",
14-
"homepage": "https://www.github.com/exactquery/poly-pointer",
14+
"version": "1.0.3",
15+
"homepage": "https://www.github.com/deviscoding/poly-pointer",
1516
"license": "MIT",
1617
"authors": [
1718
{
1819
"name": "AMJones",
1920
"email": "am@jonesiscoding.com"
2021
}
2122
],
23+
"replace": {
24+
"exactquery/poly-pointer": "^2.0"
25+
},
2226
"require": {
23-
"exactquery/xq-detect": "^3.0"
27+
"deviscoding/device": "^3.0"
2428
}
2529
}

composer.lock

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/poly-pointer.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* xqDetect v3.0.2 (https://github.com/exactquery/xq-detect)
2+
* Device v3.0.3 (https://github.com/jonesiscoding/device)
33
* @author Aaron M Jones [am@jonesiscoding.com]
4-
* @licence MIT (https://github.com/exactquery/xq-detect/blob/master/LICENSE)
4+
* @licence MIT (https://github.com/jonesiscoding/device/blob/master/LICENSE)
55
*/
66
var detect = function (w, d) {
77
'use strict';
@@ -234,9 +234,9 @@ detect.add( 'legacy', function () {
234234
*
235235
* IE - @media handheld, screen and (pointer:coarse) works. @media handheld and (pointer:coarse) does not work.
236236
*
237-
* From PolyPointer v1.0.2 (https://github.com/exactquery/poly-pointer)
237+
* From PolyPointer v1.0.3 (https://github.com/deviscoding/poly-pointer)
238238
* @author Aaron M Jones [am@jonesiscoding.com]
239-
* @licence MIT (https://github.com/exactquery/poly-pointer/blob/master/LICENSE
239+
* @licence MIT (https://github.com/deviscoding/poly-pointer/blob/master/LICENSE
240240
* @type {{function}}
241241
*/
242242
var polyPointer = function ( d ) {
@@ -281,9 +281,8 @@ var polyPointer = function ( d ) {
281281
*/
282282
function _inObj( obj, rx ) {
283283
for ( var x = 0; x < obj.length; x++ ) {
284-
if ( rx.test( obj[ x ] ) ) {
285-
return true;
286-
}
284+
var item = ( typeof obj.item === 'function' ) ? obj.item( x ) : obj[ x ];
285+
if ( rx.test( item ) ) { return true; }
287286
}
288287

289288
return false;
@@ -329,7 +328,7 @@ var polyPointer = function ( d ) {
329328
*
330329
* No other browsers should be affected, unless they are doing user agent spoofing & somehow meet the other qualifications.
331330
*
332-
* From PolyPointer v1.0.2 (https://github.com/exactquery/poly-pointer)
331+
* From PolyPointer v1.0.3 (https://github.com/exactquery/poly-pointer)
333332
* @author Aaron M Jones [am@jonesiscoding.com]
334333
* @licence MIT (https://github.com/exactquery/poly-pointer/blob/master/LICENSE)
335334
*/

dist/js/poly-pointer.min.js

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/metro-tablet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* No other browsers should be affected, unless they are doing user agent spoofing & somehow meet the other qualifications.
99
*
10-
* From PolyPointer v1.0.2 (https://github.com/exactquery/poly-pointer)
10+
* From PolyPointer v1.0.3 (https://github.com/exactquery/poly-pointer)
1111
* @author Aaron M Jones [am@jonesiscoding.com]
1212
* @licence MIT (https://github.com/exactquery/poly-pointer/blob/master/LICENSE)
1313
*/

src/js/pointer-coarse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
*
1414
* IE - @media handheld, screen and (pointer:coarse) works. @media handheld and (pointer:coarse) does not work.
1515
*
16-
* From PolyPointer v1.0.3 (https://github.com/exactquery/poly-pointer)
16+
* From PolyPointer v1.0.3 (https://github.com/deviscoding/poly-pointer)
1717
* @author Aaron M Jones [am@jonesiscoding.com]
18-
* @licence MIT (https://github.com/exactquery/poly-pointer/blob/master/LICENSE
18+
* @licence MIT (https://github.com/deviscoding/poly-pointer/blob/master/LICENSE
1919
* @type {{function}}
2020
*/
2121
var polyPointer = function ( d ) {

0 commit comments

Comments
 (0)