Skip to content

Commit

Permalink
Updated pluginTemplate.js to demonstrate how to do a conditional depe…
Browse files Browse the repository at this point in the history
…nds.
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Jun 29, 2012
1 parent 93bfc0a commit e9c263b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pluginTemplate.js
Expand Up @@ -13,8 +13,8 @@
/* local reference */
_pe.fn.pluginName = {
type: 'plugin',
// This is an example from tabbed interface, to show how to call required libraries
depends: ['metadata', 'easytabs', 'equalheights'],
// This is an example from tabbed interface, to show how to call required libraries when they are needed
depends: (pe.mobile ? [] : ['metadata', 'easytabs', 'equalheights']),
// Don't include a mobile function if your plugin shouldn't run in mobile mode.
mobile: function (elm) {
// If applicaple, convert html elements and attributes into the format that jQuery mobile expects.
Expand Down

0 comments on commit e9c263b

Please sign in to comment.