Skip to content

Commit

Permalink
define @$el
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jun 4, 2012
1 parent aa9b891 commit 94d2b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/spine.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/spine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,9 @@ class Controller extends Module
for key, value of @options
@[key] = value

@el = document.createElement(@tag) unless @el
@el = $(@el)
@el = document.createElement(@tag) unless @el
@el = $(@el)
@$el = @el

@el.addClass(@className) if @className
@el.attr(@attributes) if @attributes
Expand Down

0 comments on commit 94d2b9f

Please sign in to comment.