Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed hasClass usage example and typo in loadCss #3

Merged
merged 1 commit into from

2 participants

@bmuenzenmeyer

whitespace preserved this time, I think.

@scottjehl
Owner

Awesome. Thanks!

@scottjehl scottjehl merged commit 65ae108 into filamentgroup:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 13, 2012
  1. @bmuenzenmeyer

    fixed hasClass usage example and typo in loadCss

    bmuenzenmeyer authored
    whitespace preserved this time, I think.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -51,7 +51,7 @@ All of the Enhance api is available via `window.ejs` or just `ejs`. From `ejs`,
- `hasClass`: check whether an element has a particular class or not. Returns a boolean result. Example:
// check if HTML element has class of "ie8"
- ejs.hasClass( document.documentElement, "home" );
+ ejs.hasClass( document.documentElement, "ie8" );
--> true | false
- `onDefine`: run a callback function as soon as a JS property is defined, such as an HTML element like `body` that may not have loaded at execution time. Accepts 2 arguments: a string to be evaluated for definition, and a callback function to execute when that first string becomes defined. `onDefine` might be used to run a script when an element is ready for manipulation, such as checking if the `body` element has a particular class. Example:
@@ -105,7 +105,7 @@ Enhance has a few more methods and properties that you might use in more complic
ejs.loadJS( "files/js/foo.php" );
-- `loadCSS`: Load a single CSS file**. This method accepts one argument, a string reference to a file. Useful if JS filetype can not be guessed by filetype. Example:
+- `loadCSS`: Load a single CSS file. This method accepts one argument, a string reference to a file. Useful if CSS filetype can not be guessed by filetype. Example:
// Load a single CSS file
ejs.loadCSS( "files/css/foo.php" );
Something went wrong with that request. Please try again.