Permalink
Browse files

Add slightly hacked jQuery to avoid SpacePen constructor workaround

There's a PR and issue filed for this on jQuery:
jquery/jquery#1213

This just introduces a hacked version of jQuery to get the better
behavior now.
  • Loading branch information...
1 parent 95d4fc8 commit 3c550ae2a0f5423fc50e7064a16b94b56d7769ec @nathansobo committed Mar 27, 2013
Showing with 9,440 additions and 1 deletion.
  1. +9,440 −0 vendor/assets/javascripts/jquery.js
  2. +0 −1 vendor/assets/javascripts/space-pen.js.coffee
Oops, something went wrong.
@@ -57,7 +57,6 @@ class View extends jQuery
constructor: (args...) ->
[html, postProcessingSteps] = @constructor.buildHtml -> @content(args...)
jQuery.fn.init.call(this, html)
- @constructor = jQuery # sadly, jQuery assumes this.constructor == jQuery in pushStack
throw new Error("View markup must have a single root element") if this.length != 1
@wireOutlets(this)
@bindEventHandlers(this)

0 comments on commit 3c550ae

Please sign in to comment.