Created
May 27, 2011 11:23
-
-
Save andrewn/995068 to your computer and use it in GitHub Desktop.
attachedTo is not accessible from outside the object
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(['jquery-1'], function($){ | |
var attachedTo = [], | |
selector = '.toggle'; | |
function init() { | |
attachedTo = $(selector); | |
} | |
function destroy() { | |
attachedTo = []; | |
} | |
return { | |
init: init, | |
destroy: destroy, | |
attachedTo: attachedTo | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment