Commit e1c6137f authored by Tristan Cavelier's avatar Tristan Cavelier

replicatestorage how to handle amd reviewed

parent a68af21a
......@@ -19,10 +19,10 @@
/*jslint indent: 2, maxlen: 80, nomen: true */
/*global define, module, require, jIO, RSVP */
(function (root, dependencies, factory) {
(function (factory) {
"use strict";
if (typeof define === 'function' && define.amd) {
return define(dependencies, function () {
return define(["jio", "rsvp"], function () {
return factory(require);
});
}
......@@ -30,13 +30,13 @@
module.exports = factory(require);
return;
}
root.replicate_storage = factory(function (name) {
factory(function (name) {
return {
"jio": jIO,
"rsvp": RSVP
}[name];
});
}(this, ['jio', 'rsvp'], function (require) {
}(function (require) {
"use strict";
var Promise = require('rsvp').Promise,
......
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