Created
June 20, 2012 11:36
-
-
Save danscotton/2959467 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/*global define:true */ | |
define( | |
[ | |
'module/bootstrap', | |
'module/timestamp', | |
'module/imageenhancer', | |
'module/transclude', | |
'module/hyperpuff/hyperpuff' | |
], function( | |
news, | |
Timestamp, | |
ImageEnhancer, | |
Transclude, | |
hyperpuff | |
) { | |
return { | |
init: function() { | |
var t = new Timestamp(new Date(new Date().toUTCString()).getTime()), | |
ie = new ImageEnhancer('.story-body img'), | |
transcluder = new Transclude(); | |
hyperpuff.init( transcluder ); | |
} | |
}; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the transcluder gets passed to the hyperpuff, and it's up to the hyperpuff to fetch the content and set up the complete events.
we could even have one transcluder on
news.transcluder
that could be used from anywhere?