Merge pull request #113 from pebble/update-docs-to-new-require-mothod

Update README.md
This commit is contained in:
Keegan Lillo
2016-06-19 13:32:26 -07:00
committed by GitHub
+4 -4
View File
@@ -786,7 +786,7 @@ Clay will by default, automatically handle the 'showConfiguration' and 'webviewc
Example: Example:
```javascript ```javascript
var Clay = require('./clay'); var Clay = require('pebble-clay');
var clayConfig = require('./config'); var clayConfig = require('./config');
var clayConfigAplite = require('./config-aplite'); var clayConfigAplite = require('./config-aplite');
var clay = new Clay(clayConfig, null, { autoHandleEvents: false }); var clay = new Clay(clayConfig, null, { autoHandleEvents: false });
@@ -829,7 +829,7 @@ If you are using [Pebble.js](https://developer.pebble.com/docs/pebblejs/) and wo
```javascript ```javascript
var Settings = require('settings'); var Settings = require('settings');
var Clay = require('./clay'); var Clay = require('pebble-clay');
var clayConfig = require('./config'); var clayConfig = require('./config');
var clay = new Clay(clayConfig, null, {autoHandleEvents: false}); var clay = new Clay(clayConfig, null, {autoHandleEvents: false});
@@ -951,7 +951,7 @@ Make sure to always wait for the config page to be built before manipulating ite
##### app.js ##### app.js
```javascript ```javascript
var Clay = require('./clay'); var Clay = require('pebble-clay');
var clayConfig = require('./config'); var clayConfig = require('./config');
var customClay = require('./custom-clay'); var customClay = require('./custom-clay');
var userData = {token: 'abc123'} var userData = {token: 'abc123'}
@@ -1088,7 +1088,7 @@ Components are simple objects with the following properties.
Components must be registered before the config page is built. The easiest way to do this is in your `app.js` after you have initialized Clay: Components must be registered before the config page is built. The easiest way to do this is in your `app.js` after you have initialized Clay:
```javascript ```javascript
var Clay = require('./clay'); var Clay = require('pebble-clay');
var clayConfig = require('./config.json'); var clayConfig = require('./config.json');
var clay = new Clay(clayConfig); var clay = new Clay(clayConfig);