๐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "User Registration", -> | |
describe "Login", -> | |
beforeEach -> | |
# Mock the Facebook login (try not to hurt it's feelings; FB is nice) | |
window.FB = jasmine.createSpyObj "FB", ["login"] | |
jasmine.Ajax.install() | |
this.registrationDialog = Vu.Registration.logIn() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Snook Engadget Menu Exercise</title> | |
<!-- <link rel="stylesheet" href="smacss-endgaget.css"/> --> | |
<style type="text/css"> | |
/* | |
we should separate out the modules into different classnames. | |
they shouldn't intermingle; | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* inform the developers that there has been a problem by printing a message to the console | |
* @param consoleMessage [string] - a (developer friendly) description of the error | |
* @param errorObject [ Error object literal] - the Error object, usually generated by an exception | |
* @param consoleMethod [string] (optional) - the type of console message to use (eg - error, log, warn ). Defaults to 'log' | |
*/ | |
logMessage: function ( consoleMessage, errorObject, consoleMethod) { | |
// var IEMessage = errorObject && errorObject.description ? errorObject.description : 'No additonal details available'; | |
if ( "object" !== typeof console ) { return -1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// make sure our browser supports creating new objects: | |
if ( typeof Object.create !== 'function' ) { | |
Object.create = function (o) { | |
function F(){} | |
F.prototype = o; | |
return new F(); | |
}; | |
} | |
/** |
NewerOlder