Commit 36b4a5d2 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage made AMD compatible

parent 0fce3ce9
......@@ -11,9 +11,15 @@
/*jslint indent: 2, nomen: true, unparam: true */
/*global jIO, complex_queries, console, UriTemplate, FormData, RSVP,
ProgressEvent */
ProgressEvent, define */
(function (jIO, complex_queries) {
(function (dependencies, module) {
"use strict";
if (typeof define === 'function' && define.amd) {
return define(dependencies, module);
}
module(RSVP, jIO, complex_queries);
}(['rsvp', 'jio', 'complex_queries'], function (RSVP, jIO, complex_queries) {
"use strict";
function ERP5Storage(spec) {
......@@ -249,4 +255,4 @@
jIO.addStorage("erp5", ERP5Storage);
}(jIO, complex_queries));
}));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment