Skip to content

Instantly share code, notes, and snippets.

View trevorparscal's full-sized avatar

Trevor Parscal trevorparscal

View GitHub Profile
/**
* Capture event.
*
* Only works in IE9+.
*
* @todo Rework this so you can uncapture - which is tricky since
* we are wrapping the callback in a fixup function.
*
* @param {string} DOM event to capture
* @param {Function} Callback to execute when event is triggered
/**
* @inheritdoc
*/
ve.ui.LinkInspector.prototype.setup = function ( data ) {
var focusedNode = this.surface.getView().getFocusedNode();
if (
focusedNode &&
ve.isInstanceOfAny( focusedNode.getModel(), this.constructor.static.modelClasses )
@trevorparscal
trevorparscal / gist:5631224
Created May 22, 2013 21:49
oojs module template
/* Local Symbols */
( function ( oo, $ ) {
/* Your code here */
/* Global Symbols */
}( ObjectOrientedJavaScript, jQuery ) );
Trevor-Parscals-MacBook-Air:wikidom tparscal$ svn commit -m "Added auto-scrolling when the cursor is moved and fixed some syntax issues that jshint caught"
Sending lib/synth/views/es.SurfaceView.js
Transmitting file data .svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 255) with no output.