diff --git a/Docs/Behavior.Startup.md b/Docs/Behavior.Startup.md index 5b4175e..aae80ee 100644 --- a/Docs/Behavior.Startup.md +++ b/Docs/Behavior.Startup.md @@ -5,23 +5,23 @@ Invokes delegators on startup when specified conditions are met. This allows you ### Example - enable + enable ### Options diff --git a/Docs/Behavior.md b/Docs/Behavior.md index 139c38b..ff7ef93 100644 --- a/Docs/Behavior.md +++ b/Docs/Behavior.md @@ -433,8 +433,8 @@ Filters nearly always return instances of classes (this is essentially their pur /* the matching HTML
-
Toggle 1
-
This area is controlled by Toggle 1.
+
Toggle 1
+
This area is controlled by Toggle 1.
*/ In the example above our filter finds the sections and togglers and validates that there is at least one of each. If there aren't it calls `api.fail` - this stops the filter's execution and Behavior.js catches it and calls its `onError` event (which defaults to `console.error`). It also checks if the number of togglers and the number of sections are equal and calls `api.warn` if they are off. This does *not* top execution; it only fires the `onWarn` event on Behavior (which defaults to `console.warn`). diff --git a/Docs/BehaviorAPI.md b/Docs/BehaviorAPI.md index 866adbe..6492f6c 100644 --- a/Docs/BehaviorAPI.md +++ b/Docs/BehaviorAPI.md @@ -27,9 +27,9 @@ If you attempt to read a value that isn't defined in this options object, the pr Note that filter names that contain characters other than A-Z, 0-9, or dash are stripped and what remains is case insensitive. Dots are turned to dashes. Further, camelCase properties are hyphenated to camel-case. So, for example, you would express the following: - - //and - note the hyphenation - + + //and - note the hyphenation + BehaviorAPI Method: get {#BehaviorAPI:get} ------------------------------------------ @@ -53,8 +53,8 @@ Gets a value for the specified name. ### Returns * (*mixed*) Values defined as strings will be returned as strings. Values defined in JSON will be returned as their - type is evaluated. When you expect anything other than a string it's better to use [getAs](#BehaviorAPI:getAs). - When more than one name is specified you'll receive an object response with key/value pairs for the name/property values. + type is evaluated. When you expect anything other than a string it's better to use [getAs](#BehaviorAPI:getAs). + When more than one name is specified you'll receive an object response with key/value pairs for the name/property values. BehaviorAPI Method: getAs {#BehaviorAPI:getAs} ------------------------------------------ diff --git a/Docs/Delegator.md b/Docs/Delegator.md index ece97ae..cdba1d1 100644 --- a/Docs/Delegator.md +++ b/Docs/Delegator.md @@ -169,8 +169,8 @@ This is both a static method and an instance method. Using the static method (`D ### Syntax - Delegator.getTrigger(name); - myDelegator.getTrigger(name); + Delegator.getTrigger(name); + myDelegator.getTrigger(name); ### Arguments @@ -182,7 +182,7 @@ This is both a static method and an instance method. Using the static method (`D ### Examples - //this is the same example as the one at the top of the page + //this is the same example as the one at the top of the page var myDelegator = new Delegator(); myDelegator.attach(myContainerElement); //this adds a global trigger