[extensions-web] Reverting "js: Use a named function expression instead of a local variable"
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Reverting "js: Use a named function expression instead of a local variable"
- Date: Tue, 5 Jun 2012 15:53:23 +0000 (UTC)
commit bd128ee97382ce6499de7bbe98e7253c1388f8e9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 5 11:53:07 2012 -0400
Reverting "js: Use a named function expression instead of a local variable"
sweettooth/static/js/dbus.js | 2 +-
sweettooth/static/js/hashParamUtils.js | 6 +++---
sweettooth/static/js/messages.js | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/sweettooth/static/js/dbus.js b/sweettooth/static/js/dbus.js
index 3ea5282..9d1234c 100644
--- a/sweettooth/static/js/dbus.js
+++ b/sweettooth/static/js/dbus.js
@@ -12,7 +12,7 @@ define(['jquery'], function($) {
var exports = {};
- exports.load = function load(name, req, onLoad, config) {
+ var load = exports.load = function(name, req, onLoad, config) {
$(document).ready(function() {
if (!('SweetTooth' in window)) {
diff --git a/sweettooth/static/js/hashParamUtils.js b/sweettooth/static/js/hashParamUtils.js
index d795650..f7cea30 100644
--- a/sweettooth/static/js/hashParamUtils.js
+++ b/sweettooth/static/js/hashParamUtils.js
@@ -5,7 +5,7 @@ define(["jquery"], function($) {
var exports = {};
- exports.getHashParams = function getHashParams() {
+ var getHashParams = exports.getHashParams = function() {
var hash = window.location.hash;
if (!hash)
return {};
@@ -29,11 +29,11 @@ define(["jquery"], function($) {
return obj;
};
- exports.setHashParams = function setHashParams(obj) {
+ var setHashParams = exports.setHashParams = function(obj) {
window.location.hash = $.param(obj);
};
- exports.setHashParam = function setHashParam(name, value) {
+ var setHashParam = exports.setHashParam = function(name, value) {
var hp = getHashParams();
if (value === undefined)
delete hp[name];
diff --git a/sweettooth/static/js/messages.js b/sweettooth/static/js/messages.js
index 9d5d3ed..b092e6c 100644
--- a/sweettooth/static/js/messages.js
+++ b/sweettooth/static/js/messages.js
@@ -38,7 +38,7 @@ define(['jquery'], function($) {
$container.append(messages);
}
- exports.addMessage = function addMessage(tag, message) {
+ var addMessage = exports.addMessage = function(tag, message) {
var message = $('<p>').addClass('message').addClass(tag)
.append(message).appendTo($container);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]