Skip to content

Adview demo. - #1

Open
rpaquay wants to merge 4 commits into
erikkay:masterfrom
rpaquay:adview
Open

Adview demo.#1
rpaquay wants to merge 4 commits into
erikkay:masterfrom
rpaquay:adview

Conversation

@rpaquay

@rpaquay rpaquay commented May 7, 2013

Copy link
Copy Markdown

This is the initial adview demo ad Sriram asked me to implement. Let me know if this requires more tweaking.

Comment thread app/js/adview-demo.js Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe don't polute the global namespace with such generic function names? Wrapping the entire file in (function(){ ... })(); like slide-controller.js does would be one way.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with Marijn.

Avoids polluting global namespace.
Comment thread app/js/slide-controller.js Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just remove the code altogether. This was only interesting when hosted in a web page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants