edx-modulestore
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -110,3 +110,8 @@ 'use strict'; | ||
_saveAboutFields: function () { | ||
return Promise.map(this._about, function (field) { | ||
var fields = []; | ||
for (var about in this._about) { | ||
fields[about] = this._about[about]; | ||
} | ||
return Promise.map(fields, function (field) { | ||
return field.saveAsync(); | ||
@@ -313,5 +318,7 @@ }); | ||
save: function () { | ||
this._super() | ||
.then(function (course) { | ||
return course._saveAboutFields(); | ||
var self = this; | ||
return this._super() | ||
.then(function () { | ||
return self._saveAboutFields(); | ||
}) | ||
@@ -318,0 +325,0 @@ .return(this); |
{ | ||
"name": "edx-modulestore", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Easy browsing of Open edX modulestores", | ||
@@ -5,0 +5,0 @@ "author": "Bertrand Marron", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35798
1049