Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkunka committed May 6, 2018
1 parent 09f8fcb commit 8c5f1b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Firstly, install the package using your package manager of choice.
npm install easydropdown --save
```

You may then import `easydropdown()` factory function into your project's modules.
You may then import the `easydropdown()` factory function into your project's modules.

```js
import easydropdown from 'easydropdown';
```

### Script Tag
#### Script Tag

For basic projects without modular scoping or a build process, the most simple way to use EasyDropDown is via a `<script>` tag before your closing body tag. A pre-built "UMD" bundle is provided for this purpose which can be found in the `./bundle/easydropdown.min.js` file.

Expand All @@ -67,9 +67,9 @@ Because EasyDropDown is an enhancement on top of native `<select>` elements, the
Next, you need to instantiate EasyDropDown on your native select element(s). There are two possible ways to do this:
### Single Select Instantiations
### Single Select Instantiation
Firstly, obtain a reference the select DOM element. You can then pass this reference to the `easydropdown()` factory function. The factory function also accepts an optional second argument of configuration options which will be described later.
Firstly, obtain a reference the select DOM element. You can then pass this reference to the `easydropdown()` factory function as the first parameter. The factory function also accepts an optional second parameter of configuration options which will be described later.
```js
import easydropdown from 'easydropdown';
Expand Down

0 comments on commit 8c5f1b7

Please sign in to comment.