Skip to content

Commit

Permalink
Add Form to the Backbone namespace in AMD and CommonJS version, for s…
Browse files Browse the repository at this point in the history
…implicity. Remove AMD-specific editor files
  • Loading branch information
powmedia committed Jun 29, 2012
1 parent d22690c commit 64bfffd
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 945 deletions.
9 changes: 4 additions & 5 deletions distribution/backbone-forms.amd.js
@@ -1,5 +1,5 @@
/**
* Backbone Forms v0.10.0
* Backbone Forms v0.10.1
*
* NOTE:
* This version is for use with RequireJS
Expand All @@ -10,7 +10,7 @@
* License and more information at:
* http://github.com/powmedia/backbone-forms
*/
define(['jquery', 'underscore', 'Backbone'], function($, _, Backbone) {
define(['jquery', 'underscore', 'backbone'], function($, _, Backbone) {


//==================================================================================================
Expand Down Expand Up @@ -1905,10 +1905,9 @@ Form.editors = (function() {


//Metadata
Form.VERSION = '0.10.0';

Form.VERSION = '0.10.1';

//Exports
return Form;
Backbone.Form = Form;

});
2 changes: 1 addition & 1 deletion distribution/backbone-forms.amd.min.js

Large diffs are not rendered by default.

16 changes: 4 additions & 12 deletions distribution/backbone-forms.js
@@ -1,5 +1,5 @@
/**
* Backbone Forms v0.10.0
* Backbone Forms v0.10.1
*
* Copyright (c) 2012 Charles Davison, Pow Media Ltd
*
Expand Down Expand Up @@ -1918,18 +1918,10 @@ Form.editors = (function() {


//Metadata
Form.VERSION = '0.10.0';
Form.VERSION = '0.10.1';


//EXPORTS
//CommonJS
if (typeof module == 'object' && module.exports) {
module.exports = Form;
}

//Browser
else {
Backbone.Form = Form;
}
//Exports
Backbone.Form = Form;

})(this);
2 changes: 1 addition & 1 deletion distribution/backbone-forms.min.js

Large diffs are not rendered by default.

0 comments on commit 64bfffd

Please sign in to comment.