Skip to content

Commit

Permalink
Cleanup after reviewing diff
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatliner committed Jul 17, 2016
1 parent 449e399 commit 1ce5095
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Original work Copyright (c) 2013 HubSpot, Inc.
Copyright (c) 2013 HubSpot, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
7 changes: 3 additions & 4 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ Plugins can be published individually to package managers such as npm or bower,
```
npm install --save vex-dialog
```
Warning: `vex-dialog` package doesn't exist at this moment in time. Use `vex2-dialog`.

### Registering plugins

All plugins must be registered with the main vex module.

```javascript
var vex = require('vex2') // or window.vex, if included via script tag
vex.registerPlugin(require('vex2-dialog')) // or window.vexDialog, if included via script tag
var vex = require('vex') // or window.vex, if included via script tag
vex.registerPlugin(require('vex-dialog')) // or window.vexDialog, if included via script tag

// The plugin is registered under the vex namespace.
vex.dialog.alert('I was made by a plugin!')
Expand Down Expand Up @@ -53,4 +52,4 @@ vex.helloWorld.open('Hello!') // logs 'you opened a vex with a plugin!'

### List of plugins

- [vex-dialog](https://github.com/bbatliner/vex2-dialog)
- [vex-dialog](https://github.com/bbatliner/vex-dialog)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Brendan Batliner <[email protected]"
],
"license": "MIT",
"main": "dist/vex.min.js",
"main": "dist/vex.js",
"repository": {
"type": "git",
"url": "https://github.com/HubSpot/vex.git"
Expand Down

0 comments on commit 1ce5095

Please sign in to comment.