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
--require should | |
--reporter dot | |
--ui bdd | |
--debug | |
--compilers coffee:coffee-react/register | |
--recursive |
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
define(function(require) { | |
var Backbone = require(‘backbone’), | |
backboneCanvasMixin = require(‘components/shapes/mixins/backbone_raphael_mixin’), | |
isMovable = require(‘components/shapes/mixins/is_movable’) | |
isRotatable = require(‘components/shapes/mixins/is_rotatable’) | |
// … and more ; | |
return Backbone.View.extend({ … }) | |
.mixin(backboneCanvasMixin) |
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
define(function(require) { | |
'use strict'; | |
require('stickit'); | |
return function(options){ | |
// NOTE: this assumes inputs | |
var bindingDefaults = { | |
events: ['blur', 'paste', 'change'], | |
onSet: 'onSet' |
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
define(function(require) { | |
// forked from https://github.com/tomasAlabes/backbone.raphael | |
'use strict'; | |
function addMixin(mixinOptions) { | |
this.clobber({ | |
setElement: function (element, delegate, undelegateEvents) { | |
if (this.el && undelegateEvents) { | |
this.undelegateEvents(); |
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
_ = require('lodash') | |
class Mixable | |
constructor: -> | |
@initialize() | |
initialize: -> | |
@addToObj: (objectName, dictionary) -> |
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
### | |
Listens for clicks on a tags, if relative and the target is not blank it will use pushState | |
otherwise we fall through to normal click handling. Note preventDefault might need to be | |
handled better in older browsers. | |
### | |
hijackRelativeURLs = -> | |
document.addEventListener('click', (e) -> | |
element = e.target | |
if element?.nodeName == 'A' |
NewerOlder