Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from markdalgleish/hide-deps
Browse files Browse the repository at this point in the history
Automatically run dependant plugins
  • Loading branch information
joelpurra committed Dec 2, 2013
2 parents 071bd1e + 7d955b9 commit 99837ba
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -56,7 +56,7 @@
micro: {
src: '<%= uglify.dist.dest %>',
options: {
limit: 1024,
limit: 2048,
gzip: true
}
},
Expand Down
3 changes: 0 additions & 3 deletions README.md
Expand Up @@ -23,8 +23,6 @@ Then, simply include the plugin when instantiating your presentation.

```js
bespoke.horizontal.from('article', {
convenient: true,
indexfinger: true,
secondary: true
});
```
Expand Down Expand Up @@ -63,7 +61,6 @@ In your presentation, add some notes:

```js
bespoke.horizontal.from('article', {
convenient: true,
secondary: {
// Change the selector used to find notes, in a .bespoke-slide context
notes: ".my-notes",
Expand Down
2 changes: 0 additions & 2 deletions demo/demo.js
Expand Up @@ -4,8 +4,6 @@
"use strict";

bespoke.horizontal.from("article", {
convenient: true,
indexfinger: true,
secondary: true
});
}(bespoke));
6 changes: 6 additions & 0 deletions dist/bespoke-secondary.js
Expand Up @@ -131,6 +131,11 @@
}
},

setupDependencies = function() {
bespoke.plugins.convenient(deck, true);
bespoke.plugins.indexfinger(deck, true);
},

registerDeckExtensions = function() {
deck.secondary = {
window: null,
Expand Down Expand Up @@ -192,6 +197,7 @@
},

init = function() {
setupDependencies();
initOptions();
registerDeckExtensions();
enable();
Expand Down
2 changes: 1 addition & 1 deletion dist/bespoke-secondary.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions spec/bespoke-secondarySpec.js
Expand Up @@ -14,8 +14,6 @@
}

deck = bespoke.from(parent, {
convenient: true,
indexfinger: true,
secondary: true
});
};
Expand Down
6 changes: 6 additions & 0 deletions src/bespoke-secondary.js
Expand Up @@ -125,6 +125,11 @@
}
},

setupDependencies = function() {
bespoke.plugins.convenient(deck, true);
bespoke.plugins.indexfinger(deck, true);
},

registerDeckExtensions = function() {
deck.secondary = {
window: null,
Expand Down Expand Up @@ -186,6 +191,7 @@
},

init = function() {
setupDependencies();
initOptions();
registerDeckExtensions();
enable();
Expand Down

0 comments on commit 99837ba

Please sign in to comment.