Comparing version 0.3.0 to 0.3.1
@@ -5,4 +5,5 @@ /* | ||
var $ = require("./base"), | ||
trim = require("mout/string/trim"), | ||
var $ = require("./base") | ||
var trim = require("mout/string/trim"), | ||
forEach = require("mout/array/forEach"), | ||
@@ -9,0 +10,0 @@ filter = require("mout/array/filter"), |
16
base.js
@@ -5,4 +5,5 @@ /* | ||
var prime = require("prime"), | ||
forEach = require("mout/array/forEach"), | ||
var prime = require("prime") | ||
var forEach = require("mout/array/forEach"), | ||
map = require("mout/array/map"), | ||
@@ -15,5 +16,12 @@ filter = require("mout/array/filter"), | ||
var uniqueIndex = 0 | ||
var index = 0, | ||
__dc = document.__counter, | ||
counter = document.__counter = (__dc ? parseInt(__dc, 36) + 1 : 0).toString(36), | ||
key = "uid:" + counter | ||
var uniqueID = function(n){ | ||
return (n === global) ? "global" : n.uniqueNumber || (n.uniqueNumber = "n:" + (uniqueIndex++).toString(36)) | ||
if (n === global) return "global" | ||
if (n === document) return "document" | ||
if (n === document.documentElement) return "html" | ||
return n[key] || (n[key] = (index++).toString(36)) | ||
} | ||
@@ -20,0 +28,0 @@ |
{ | ||
"name": "elements", | ||
"description": "prime dom library", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT (http://mootools.net/license.txt)", | ||
@@ -24,3 +24,3 @@ "main": "./index.js", | ||
"mout": "0.9", | ||
"slick": ">=1.10.4 <2.0.0" | ||
"slick": ">=1.11.0 <2.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58267
586
Updatedslick@>=1.11.0 <2.0.0