Features Class
+ + + + +
+
+
+
+
+Feature detection
+
+
+
+ -
+
- Index + + +
- Methods + + +
- Properties + + + +
+
+
+
+
+
+ Item Index
+ + + + + + +
+
+
+
+
+
+
+ Properties
+ +-
+
+
- + tests + + + + + +
+
+
+
+
+ Methods
+ + +
+
+
+
+
+
+
+ add
+
+
+
+ (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
cat+ +
+
+ -
+
+
name+ +
+
+ -
+
+
o+ +
+
+
+
+
+
+ Add a test to the system
+ +
+ Y.Features.add("load", "1", {});
+
+
+
+
+
+
+
+Parameters:
+ + +
+
+
+
+
+
+
+ all
+
+
+
+ (
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
cat+ +
+
+ -
+
+
args+ +
+
+
+
+
+
+ Execute all tests of a given category and return the serialized results
+ +
+ caps=1:1;2:1;3:0
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ String:
+
+ A semi-colon separated string of tests and their success/failure: 1:1;2:1;3:0
+
+
+
+
+
+
+
+
+
+ test
+
+
+
+ (
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
cat+ +
+
+ -
+
+
name+ +
+
+ -
+
+
args+ +
+
+
+
+
+
+ Run a sepecific test and return a Boolean response.
+ +
+ Y.Features.test("load", "1");
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Boolean:
+
+ True or false if the test passed/failed.
+
+
+
+
+
+
+
+
+
+ Properties
+ + +
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tests
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Object hash of all registered feature tests
+