[extensions-web] js: Rename hashparamutils to hashParamUtils to be consistent
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Rename hashparamutils to hashParamUtils to be consistent
- Date: Sat, 31 Mar 2012 20:48:40 +0000 (UTC)
commit e0fddd859a0d38bc5b0d990b5e801ff1e7a5bec0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 30 21:32:33 2012 -0400
js: Rename hashparamutils to hashParamUtils to be consistent
sweettooth/static/js/fsui.js | 8 ++++----
.../js/{hashparamutils.js => hashParamUtils.js} | 0
sweettooth/static/js/paginator.js | 4 ++--
sweettooth/static/js/paginatorUtils.js | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/sweettooth/static/js/fsui.js b/sweettooth/static/js/fsui.js
index 3fee191..8aa8ac1 100644
--- a/sweettooth/static/js/fsui.js
+++ b/sweettooth/static/js/fsui.js
@@ -4,8 +4,8 @@
// controls for filtering and sorting the extensions list
require(['jquery', 'dbus!_',
- 'hashparamutils', 'modal'],
-function($, dbusProxy, hashparamutils, modal) {
+ 'hashParamUtils', 'modal'],
+function($, dbusProxy, hashParamUtils, modal) {
function makeDropdownLink(text) {
return $('<a>', {'class': 'fsui-dropdown-link'}).
@@ -21,7 +21,7 @@ function($, dbusProxy, hashparamutils, modal) {
return $('<li>', {'class': 'fsui-dropdown-item'}).
text(text).
click(function() {
- hashparamutils.setHashParam(key, value);
+ hashParamUtils.setHashParam(key, value);
closeUI();
});
}
@@ -51,7 +51,7 @@ function($, dbusProxy, hashparamutils, modal) {
};
}
- var hp = hashparamutils.getHashParams();
+ var hp = hashParamUtils.getHashParams();
if (hp.sort === undefined || !sortCriteria.hasOwnProperty(hp.sort))
hp.sort = 'popularity';
diff --git a/sweettooth/static/js/hashparamutils.js b/sweettooth/static/js/hashParamUtils.js
similarity index 100%
rename from sweettooth/static/js/hashparamutils.js
rename to sweettooth/static/js/hashParamUtils.js
diff --git a/sweettooth/static/js/paginator.js b/sweettooth/static/js/paginator.js
index 55e4621..5646b2c 100644
--- a/sweettooth/static/js/paginator.js
+++ b/sweettooth/static/js/paginator.js
@@ -1,6 +1,6 @@
"use strict";
-define(['jquery', 'hashparamutils', 'paginatorUtils', 'dbus!_', 'templates'], function($, hashparamutils, paginatorUtils, dbusProxy, templates) {
+define(['jquery', 'hashParamUtils', 'paginatorUtils', 'dbus!_', 'templates'], function($, hashParamUtils, paginatorUtils, dbusProxy, templates) {
$.fn.paginatorify = function(context) {
if (!this.length)
@@ -24,7 +24,7 @@ define(['jquery', 'hashparamutils', 'paginatorUtils', 'dbus!_', 'templates'], fu
if (currentRequest !== null)
currentRequest.abort();
- var queryParams = hashparamutils.getHashParams();
+ var queryParams = hashParamUtils.getHashParams();
if (queryParams.page === undefined)
queryParams.page = 1;
if (queryParams.shell_version === undefined)
diff --git a/sweettooth/static/js/paginatorUtils.js b/sweettooth/static/js/paginatorUtils.js
index 2f99677..6ea565a 100644
--- a/sweettooth/static/js/paginatorUtils.js
+++ b/sweettooth/static/js/paginatorUtils.js
@@ -1,6 +1,6 @@
"use strict";
-define(['jquery', 'hashparamutils'], function($, hashparamutils) {
+define(['jquery', 'hashParamUtils'], function($, hashParamUtils) {
var module = {};
@@ -8,7 +8,7 @@ define(['jquery', 'hashparamutils'], function($, hashparamutils) {
styleClass = styleClass === undefined ? "" : styleClass;
text = text === undefined ? pageNumber.toString() : text;
- var hp = hashparamutils.getHashParams();
+ var hp = hashParamUtils.getHashParams();
hp.page = pageNumber;
return $('<a>', {'class': 'number ' + styleClass,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]