Permalink
Browse files

Updated version to 1.0.0. API has been tried and tested in various pr…

…oduction environments and proven worthy of a 1. release.
  • Loading branch information...
1 parent c5c42bd commit cde056537a601b4923fb56f1ccac5c715bc6b2dd @efeminella committed Apr 2, 2013
@@ -1,28 +1,21 @@
-/**
+/*
* Backbone Eventbroker v{{version}}
*
- * NOTE:
* This version is for use with RequireJS
* If using regular <script> tags to include your files, use backbone-memory.min.js
*
- * Copyright (c) 2012 Eric Feminella, Sven Lito
+ * Copyright (c) 2012 - 2013 Eric Feminella, Sven Lito
+ * License and more information at: http://code.ericfeminella.com/license/LICENSE.txt
*
- * License and more information at:
- * http://code.ericfeminella.com/license/LICENSE.txt
*/
-define([
- 'jquery',
- 'backbone',
- 'underscore'
-],
+define( function($, Backbone, _) {
+ var _ = require('underscore')
+ , $ = require('jquery')
+ , Backbone = require('backbone')
-function($, Backbone, _) {
-
- "use strict";
-
- {{body}}
-
- //Exports
- return Backbone.EventBroker;
+ "use strict";
+{{body}}
+ // exports
+ return Backbone.EventBroker;
});
@@ -1,30 +1,25 @@
-/**
+/*
* Backbone Eventbroker v{{version}}
*
- * Copyright (c) 2012 Eric Feminella, Sven Lito
+ * Copyright (c) 2012 - 2013 Eric Feminella, Sven Lito
+ * License and more information at: http://code.ericfeminella.com/license/LICENSE.txt
*
- * License and more information at:
- * http://code.ericfeminella.com/license/LICENSE.txt
*/
;(function($, _, Backbone) {
+ "use strict";
+ {{body}}
+ //EXPORTS
+ //AMD (RequireJS) - For exporting as a module when Backbone and jQuery are on the page
+ //If using RequireJS to load Backbone, Underscore and jQuery, use the AMD-specific file
+ if (typeof define === 'function' && define.amd) {
+ return define(function() {
+ return Backbone.EventBroker;
+ });
+ }
- "use strict";
-
- {{body}}
-
- //EXPORTS
- //AMD (RequireJS) - For exporting as a module when Backbone and jQuery are on the page
- //If using RequireJS to load Backbone, Underscore and jQuery, use the AMD-specific file
- if (typeof define === 'function' && define.amd) {
- return define(function() {
- return Backbone.EventBroker;
- });
- }
-
- //CommonJS (NodeJS)
- if (typeof module === 'object' && typeof module.exports === 'object') {
- module.exports = Backbone.EventBroker;
- return;
- }
-
+ //CommonJS (NodeJS)
+ if (typeof module === 'object' && typeof module.exports === 'object') {
+ module.exports = Backbone.EventBroker;
+ return;
+ }
}(jQuery, _, Backbone));
Oops, something went wrong.

0 comments on commit cde0565

Please sign in to comment.