Skip to content

Commit

Permalink
Replaced nbsp.
Browse files Browse the repository at this point in the history
  • Loading branch information
icc committed Aug 26, 2015
1 parent 1298643 commit d8d7fda
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions js/h5p-content-upgrade-process.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*jshint -W083 */
var H5PUpgrades = H5PUpgrades || {};

H5P.ContentUpgradeProcess = (function (Version) {
H5P.ContentUpgradeProcess = (function (Version) {

/**
* @class
Expand All @@ -25,7 +25,7 @@ H5P.ContentUpgradeProcess = (function (Version) {
}

self.loadLibrary = loadLibrary;
self.upgrade(name, oldVersion, newVersion, params, function (err, result) {
self.upgrade(name, oldVersion, newVersion, params, function (err, result) {
if (err) {
return done(err);
}
Expand Down Expand Up @@ -200,7 +200,7 @@ H5P.ContentUpgradeProcess = (function (Version) {
}
next(err);
});

}, function (err) {
done(err, params);
});
Expand Down
4 changes: 2 additions & 2 deletions js/h5p-content-upgrade-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ var libraryLoadedCallback;
* Register message handlers
*/
var messageHandlers = {
newJob: function (job) {
newJob: function (job) {
// Start new job
new H5P.ContentUpgradeProcess(job.name, new H5P.Version(job.oldVersion), new H5P.Version(job.newVersion), job.params, job.id, function loadLibrary(name, version, next) {
new H5P.ContentUpgradeProcess(job.name, new H5P.Version(job.oldVersion), new H5P.Version(job.newVersion), job.params, job.id, function loadLibrary(name, version, next) {
// TODO: Cache?
postMessage({
action: 'loadLibrary',
Expand Down
8 changes: 4 additions & 4 deletions js/h5p-content-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

// Register message handlers
var messageHandlers = {
done: function (result) {
done: function (result) {
self.workDone(result.id, result.params, this);
},
error: function (error) {
Expand All @@ -124,7 +124,7 @@
// Stop everything
self.terminate();
},
loadLibrary: function (details) {
loadLibrary: function (details) {
var worker = this;
self.loadLibrary(details.name, new Version(details.version), function (err, library) {
if (err) {
Expand Down Expand Up @@ -258,8 +258,8 @@
});
}
else {
new H5P.ContentUpgradeProcess(info.library.name, new Version(info.library.version), self.version, self.parameters[id], id, function loadLibrary(name, version, next) {
self.loadLibrary(name, version, function (err, library) {
new H5P.ContentUpgradeProcess(info.library.name, new Version(info.library.version), self.version, self.parameters[id], id, function loadLibrary(name, version, next) {
self.loadLibrary(name, version, function (err, library) {
if (library.upgradesScript) {
self.loadScript(library.upgradesScript, function (err) {
if (err) {
Expand Down
6 changes: 3 additions & 3 deletions js/h5p-event-dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var H5P = H5P || {};
* @param {string} type
* @param {*} data
* @param {Object} [extras]
* @param {boolean} [extras.bubbles] 
* @param {boolean} [extras.bubbles]
* @param {boolean} [extras.external]
*/
H5P.Event = function(type, data, extras) {
Expand Down Expand Up @@ -194,7 +194,7 @@ H5P.EventDispatcher = (function () {
* @private
* @param {string} Event type
*/
var call = function (type, event) {
var call = function (type, event) {
if (triggers[type] === undefined) {
return;
}
Expand All @@ -216,7 +216,7 @@ H5P.EventDispatcher = (function () {
* Custom event data(used when event type as string is used as first
* argument).
* @param {Object} [extras]
* @param {boolean} [extras.bubbles] 
* @param {boolean} [extras.bubbles]
* @param {boolean} [extras.external]
*/
this.trigger = function (event, eventData, extras) {
Expand Down
6 changes: 3 additions & 3 deletions js/h5p-resizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
};

/**
* Keyup event handler. Exits full screen on escape.
*
* Keyup event handler. Exits full screen on escape.asdasd a
*
* @param {Event} event
*/
var escape = function (event) {
var escape = function (event) {
if (event.keyCode === 27) {
exitFullScreen();
}
Expand Down
2 changes: 1 addition & 1 deletion js/h5p-version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
H5P.Version = (function () {
H5P.Version = (function () {
/**
* Make it easy to keep track of version details.
*
Expand Down
20 changes: 10 additions & 10 deletions js/h5p.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ H5P.init = function (target) {
params: JSON.parse(contentData.jsonContent)
};

H5P.getUserData(contentId, 'state', function (err, previousState) {
H5P.getUserData(contentId, 'state', function (err, previousState) {
if (previousState) {
library.userDatas = {
state: previousState
Expand Down Expand Up @@ -206,7 +206,7 @@ H5P.init = function (target) {
instance.getCurrentState instanceof Function ||
typeof instance.getCurrentState === 'function')) {

var saveTimer, save = function () {
var saveTimer, save = function () {
var state = instance.getCurrentState();
if (state !== undefined) {
H5P.setUserData(contentId, 'state', state, {deleteOnChange: true});
Expand Down Expand Up @@ -381,7 +381,7 @@ H5P.getHeadTags = function (contentId) {
*
* @type {Communicator}
*/
H5P.communicator = (function () {
H5P.communicator = (function () {
/**
* @class
* @private
Expand Down Expand Up @@ -420,7 +420,7 @@ H5P.communicator = (function () {
* @param {string} action
* @param {Object} [data] payload
*/
self.send = function (action, data) {
self.send = function (action, data) {
if (data === undefined) {
data = {};
}
Expand Down Expand Up @@ -893,7 +893,7 @@ H5P.Dialog = function (name, title, content, $element) {
* Identifies the H5P content
* @returns {string} Copyright information.
*/
H5P.getCopyrights = function (instance, parameters, contentId) {
H5P.getCopyrights = function (instance, parameters, contentId) {
var copyrights;

if (instance.getCopyrights !== undefined) {
Expand Down Expand Up @@ -1010,7 +1010,7 @@ H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size) {
}
return Math.ceil(num);
};
var updateEmbed = function () {
var updateEmbed = function () {
$dialog.find('.h5p-embed-code-container:first').val(fullEmbedCode.replace(':w', getNum($w, size.width)).replace(':h', getNum($h, size.height)));
};

Expand All @@ -1028,7 +1028,7 @@ H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size) {
positionInner();

// Expand advanced embed
var expand = function () {
var expand = function () {
var $expander = H5P.jQuery(this);
var $content = $expander.next();
if ($content.is(':visible')) {
Expand Down Expand Up @@ -1729,7 +1729,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
options.type = 'GET';
}
if (done !== undefined) {
options.error = function (xhr, error) {
options.error = function (xhr, error) {
done(error);
};
options.success = function (response) {
Expand Down Expand Up @@ -1782,7 +1782,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
}
}
else {
contentUserDataAjax(contentId, dataId, subContentId, function (err, data) {
contentUserDataAjax(contentId, dataId, subContentId, function (err, data) {
if (err || data === undefined) {
done(err, data);
return; // Error or no data
Expand Down Expand Up @@ -1934,7 +1934,7 @@ H5P.createTitle = function (rawTitle, maxLength) {

// Relay events to top window.
if (H5P.isFramed && H5P.externalEmbed === false) {
H5P.externalDispatcher.on('*', function (event) {
H5P.externalDispatcher.on('*', function (event) {
window.top.H5P.externalDispatcher.trigger.call(this, event);
});
}
Expand Down

0 comments on commit d8d7fda

Please sign in to comment.