Skip to content

Commit

Permalink
remove erroneous and superfluous register
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Jolif committed Apr 15, 2015
1 parent 50743c1 commit e22229c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
3 changes: 1 addition & 2 deletions docs/Button.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ See [`delite/Widget`](/delite/docs/master/Widget.md) for full details on how ins

```js
require([
"delite/register",
"deliteful/Button"
], function (register, button) {
], function (Button) {
var b = new Button({label: "I am a Button"});
b.placeAt(document.body);
});
Expand Down
2 changes: 1 addition & 1 deletion docs/ScrollableContainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ src="http://jsfiddle.net/ibmjs/k68f4/embedded/result,js,html">
```js
require([
"deliteful/ScrollableContainer"
], function (register, ScrollableContainer) {
], function (ScrollableContainer) {
var sc = new ScrollableContainer({scrollDirection: "both"});
sc.placeAt(document.body);

Expand Down
4 changes: 2 additions & 2 deletions docs/Select.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ src="http://jsfiddle.net/ibmjs/nqM5G/embedded/result,js,html">
### Programmatic Instantiation

```js
require(["delite/register", "dstore/Memory", "dstore/Trackable",
require(["dstore/Memory", "dstore/Trackable",
"deliteful/Select", "requirejs-domready/domReady!"],
function (register, Memory, Trackable) {
function (Memory, Trackable) {
var select = new Select({selectionMode: "multiple"});
// Create the store
var store = new (Memory.createSubclass(Trackable))({});
Expand Down
3 changes: 1 addition & 2 deletions docs/Slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ buttons.

```js
require([
"delite/register",
"deliteful/Slider"
], function (register, Slider) {
], function (Slider) {
var slider = new Slider({value:10, step:5, min:10, max:50});
slider.placeAt(document.body);
});
Expand Down
6 changes: 2 additions & 4 deletions docs/Toaster.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ require([
```js
var mytoaster;
require([
"delite/register",
"deliteful/Toaster",
"requirejs-domready/domReady!"
], function(register, Toaster){
], function(Toaster){
mytoaster = new Toaster();
mytoaster.placeAt("container");

Expand All @@ -101,11 +100,10 @@ The `Toaster.postMessage()` also supports messages as widgets
```js
var mytoaster;
require([
"delite/register",
"deliteful/ToasterMessage",
"deliteful/Toaster",
"requirejs-domready/domReady!"
], function(register, ToasterMessage, Toaster){
], function(ToasterMessage, Toaster){
mytoaster = new Toaster();
mytoaster.placeAt("container");

Expand Down
6 changes: 3 additions & 3 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Using the source form is as simple as requiring the needed AMD modules using Req
require.config({
baseUrl: "bower_components"
});
require(["delite/register", "deliteful/Toaster", "requirejs-domready/domReady!"], function (register, Toaster) {
require(["deliteful/Toaster", "requirejs-domready/domReady!"], function (Toaster) {
var toaster = register.createElement("d-toaster");
// or
var toaster = new Toaster();
Expand All @@ -46,8 +46,8 @@ require.config({
baseUrl: "bower_components"
});
require(["deliteful/layer"], function() {
require(["delite/register", "deliteful/Toaster", "requirejs-domready/domReady!"],
function (register, Toaster) {
require(["deliteful/Toaster", "requirejs-domready/domReady!"],
function (Toaster) {
//...
});
});
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/Part4ListView.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ parameter in the `define` callback:

```js
define([
"delite/register", "dstore/Memory", ...
], function(register, Memory) {
"dstore/Memory", ...
], function(Memory) {
...
```
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/Part5CustomRenderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ our dependency list:

```js
define([
"delite/register", "dstore/Memory", "deliteful/list/ItemRenderer", "delite/handlebars", ...
], function (register, Memory, ItemRenderer, handlebars) {
"dstore/Memory", "deliteful/list/ItemRenderer", "delite/handlebars", ...
], function (Memory, ItemRenderer, handlebars) {
...
```
Expand Down

0 comments on commit e22229c

Please sign in to comment.