Skip to content

Instantly share code, notes, and snippets.

@oyiptong
Created January 16, 2014 12:33
Show Gist options
  • Save oyiptong/8454279 to your computer and use it in GitHub Desktop.
Save oyiptong/8454279 to your computer and use it in GitHub Desktop.
/**
* Creates a default new instance of the ribbon
*
* <p><b>Require Path:</b> shared/ribbon/instances/ribbon</p>
*
* @module Shared
* @submodule Shared.Ribbon
* @class RibbonInstance
* @static
**/
define('shared/ribbon/instances/ribbon',[
'jquery/nyt',
'shared/ribbon/views/ribbon',
'backbone/nyt'
], function ($, Ribbon) {
if ($('#ribbon').length > 0) {
new Ribbon();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment