Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 3c550ae2a0f5423fc50e7064a16b94b56d7769ec 1 parent 95d4fc8
Nathan Sobo authored March 27, 2013
9,440  vendor/assets/javascripts/jquery.js
9440 additions, 0 deletions not shown
1  vendor/assets/javascripts/space-pen.js.coffee
@@ -57,7 +57,6 @@ class View extends jQuery
57 57
   constructor: (args...) ->
58 58
     [html, postProcessingSteps] = @constructor.buildHtml -> @content(args...)
59 59
     jQuery.fn.init.call(this, html)
60  
-    @constructor = jQuery # sadly, jQuery assumes this.constructor == jQuery in pushStack
61 60
     throw new Error("View markup must have a single root element") if this.length != 1
62 61
     @wireOutlets(this)
63 62
     @bindEventHandlers(this)

0 notes on commit 3c550ae

Please sign in to comment.
Something went wrong with that request. Please try again.