Permalink
Browse files

better naming for cookie getter and setter

  • Loading branch information...
1 parent 8a58a56 commit f0eba2ea8b529d8396e96244476ba3e0efa256de @matzko committed Apr 1, 2011
Showing with 6 additions and 6 deletions.
  1. +5 −5 client-files/js/filosofo-js.dev.js
  2. +1 −1 client-files/js/filosofo-js.js
@@ -219,7 +219,7 @@ var FilosofoJS = function(scope) {
* @param value The value of the cookie
* @param days How many days the cookie will last
*/
- createCookie = function( name, value, days ) {
+ setCookie = function( name, value, days ) {
var date = new Date(),
expires = '';
@@ -236,7 +236,7 @@ var FilosofoJS = function(scope) {
* @param name The name of the cookie to get
* @return string The value of the cookie
*/
- readCookie = function( name ) {
+ getCookie = function( name ) {
var nameEQ = name + "=",
ca = d.cookie.split(';'),
i;
@@ -476,14 +476,14 @@ var FilosofoJS = function(scope) {
addEvent:addEvent,
Animation:Animation,
attachClassClickListener:attachClassClickListener,
- createCookie:createCookie,
doWhenReady:ready,
fade:fade,
+ getCookie:getCookie,
getEventTarget:getEventTarget,
getFormData:getFormData,
isObjProperty:isObjProp,
postReq:postReq,
- readCookie:readCookie,
- scrollToElement:scrollToElement
+ scrollToElement:scrollToElement,
+ setCookie:setCookie
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit f0eba2e

Please sign in to comment.