Skip to content

Instantly share code, notes, and snippets.

View nickjs's full-sized avatar

Nicholas J. Small nickjs

View GitHub Profile
@nickjs
nickjs / gist:6999202
Last active December 25, 2015 15:38 — forked from benjskim/gist:6999177
$(function() {
var aboutTextIsExpanded = false;
$(".moreabout").click(function(){
$(".moreabouttext").slideToggle();
if (aboutTextIsExpanded)
$(".moreabout").text("Read Less");
else
$(".moreabout").text("Read More");
});
});
@nickjs
nickjs / CHANGELOG.md
Last active December 13, 2015 18:48
batman.js 0.14.0 changelog

https://github.com/Shopify/batman/compare/v0.13.0...master

APP

  • Added: App.shouldAllowEvent.[event]. Callbacks in this hash will be called whenever the corresponding data-event is fired from anywhere within the app. Return false to prevent app-level propagation. For example:
class MyApp extends Batman.App
  @shouldAllowEvent.click = (event) ->
    return false
@nickjs
nickjs / gist:576724
Created September 13, 2010 02:32 — forked from anonymous/gist:576694
@import <Foundation/CPObject.j>
@import "../Models/MenuItem.j"
@import "../Views/AccountsWindow.j"
@implementation MainMenuController : CPObject
{
CPView _mainView;
CPString _username;
MenuItem mainMenu @accessors;