This file contains hidden or 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
var Person = Micro.extend(function(name) { | |
this.name = name; | |
}); | |
Person.include({ | |
greet: function() { | |
print('Hello, ' + this.name + '!'); | |
} | |
}); |
This file contains hidden or 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
var JSClassObserver = Class.create({ | |
findElements: function(class_name) { | |
var self = this; | |
$('.' + class_name).each(function(index, element) { | |
if(element.js_attached == null) { | |
element.js_attached = {}; | |
} | |
if(element.js_attached[class_name] != true) { | |
self.attachBehavior(element, index); | |
element.js_attached[class_name] = true; |
This file contains hidden or 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
new Ajax.Request(this.element.readAttribute('href'), { | |
method:'post', | |
onSuccess: function(response) { | |
this.hideSpinner(); | |
$('promotion_list').insert({top: response.responseText}).down('li').hide().appear(); | |
}.bind(this) | |
}); |
This file contains hidden or 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
.DS_Store | |
*.swp | |
*~.nib | |
build/ | |
*.pbxuser | |
*.perspective | |
*.perspectivev3 |
This file contains hidden or 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
(function($){ | |
jQuery.fn.mouseyDialog = function() { | |
// Classic Class Structure (note: no var, it's exposed for TDD) | |
MouseyDialog = function(element) { | |
// Constructor | |
} | |
MouseyDialog.prototype = { | |
sweetMethod: function() { | |
// Code |
This file contains hidden or 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
(function($){ | |
jQuery.fn.mouseyDialog = function() { | |
// Classic Class Structure (note: no var, it's exposed for TDD) | |
MouseyDialog = function(anchor) { | |
this.anchor = $(anchor); | |
this.dialog = $(this.anchor.attr('href')); | |
this.button = $('<a href="#" class="mouseyDialog_close">close</a>'); | |
}; | |
MouseyDialog.prototype = { |
This file contains hidden or 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
$.fn.navigationHover = function(options) { | |
var options = $.extend({}, { | |
sensitivity: 1, | |
interval: 300, | |
timeout: 500, | |
effects:true | |
}, options); | |
// Class shit |
This file contains hidden or 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
require 'codefumes_harvester' | |
include CodeFumesHarvester | |
QuickBuild.start('specs', 'running'); |
This file contains hidden or 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
require 'codefumes_harvester' | |
include CodeFumesHarvester | |
# if it failed... | |
QuickBuild.finish('specs', 'failed'); | |
# if it was successful... | |
QuickBuild.finish('specs', 'successful'); |
This file contains hidden or 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
require 'codefumes_harvester' | |
include CodeFumesHarvester | |
QuickBuild.start('specs', 'successful'); |