Comparing version 0.3.0 to 0.3.1
@@ -6,3 +6,3 @@ { | ||
"tags": [], | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"dependencies": {}, | ||
@@ -9,0 +9,0 @@ "devDependencies": { |
18
qsa.js
@@ -10,9 +10,15 @@ /* jshint node: true */ | ||
/** | ||
## qsa(selector, element) | ||
## cog/qsa | ||
This function is used to get the results of the querySelectorAll output | ||
in the fastest possible way. This code is very much based on the | ||
implementation in | ||
[zepto](https://github.com/madrobby/zepto/blob/master/src/zepto.js#L104), | ||
but perhaps not quite as terse. | ||
```js | ||
var qsa = require('cog/qsa'); | ||
``` | ||
### qsa(selector, scope?) | ||
This function is used to get the results of the querySelectorAll output | ||
in the fastest possible way. This code is very much based on the | ||
implementation in | ||
[zepto](https://github.com/madrobby/zepto/blob/master/src/zepto.js#L104), | ||
but perhaps not quite as terse. | ||
**/ | ||
@@ -19,0 +25,0 @@ module.exports = function(selector, scope) { |
@@ -10,2 +10,8 @@ /* jshint node: true */ | ||
```js | ||
var raf = require('cog/raf'); | ||
``` | ||
### raf(callback) | ||
Request animation frame helper: | ||
@@ -12,0 +18,0 @@ |
@@ -108,2 +108,14 @@ # cog | ||
## cog/loader | ||
```js | ||
var loader = require('cog/loader'); | ||
``` | ||
### loader(urls, opts?, callback) | ||
This is a simple script loader that will load the urls specified | ||
and trigger the callback once all those scripts have been loaded (or | ||
loading has failed in one instance). | ||
## cog/logger | ||
@@ -172,4 +184,10 @@ | ||
## qsa(selector, element) | ||
## cog/qsa | ||
```js | ||
var qsa = require('cog/qsa'); | ||
``` | ||
### qsa(selector, scope?) | ||
This function is used to get the results of the querySelectorAll output | ||
@@ -183,2 +201,8 @@ in the fastest possible way. This code is very much based on the | ||
```js | ||
var raf = require('cog/raf'); | ||
``` | ||
### raf(callback) | ||
Request animation frame helper: | ||
@@ -185,0 +209,0 @@ |
Sorry, the diff of this file is not supported yet
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
21816
20
448
217
7721